Merge pull request #9 from nurupo/master

Support of Travis CI
This commit is contained in:
irungentoo 2013-06-25 03:06:30 -07:00
commit 80be7a7709
2 changed files with 34 additions and 0 deletions

17
.travis.yml Normal file
View File

@ -0,0 +1,17 @@
language: c
compiler:
- gcc
script:
- cmake CMakeLists.txt
- make -j3
notifications:
email: false
irc:
channels:
- "chat.freenode.net#InsertProjectNameHere"
on_success: always
on_failure: always

17
CMakeLists.txt Normal file
View File

@ -0,0 +1,17 @@
cmake_minimum_required(VERSION 2.6.0)
project(TOX)
set(core_sources
core/DHT.c)
set(test_sources
testing/DHT_test.c)
add_executable(TOX-app
${core_sources}
${test_sources})
if(WIN32)
target_link_libraries(TOX-app ws2_32)
endif(WIN32)