mirror of
https://github.com/TokTok/c-toxcore
synced 2026-10-26 01:33:27 +00:00
commit
68d2995bce
1 file changed
+11
-5
+11
-5
@@ -1,17 +1,23 @@
|
||||
cmake_minimum_required(VERSION 2.6.0)
|
||||
project(TOX)
|
||||
project(TOX C)
|
||||
|
||||
set(core_sources
|
||||
core/DHT.c)
|
||||
|
||||
set(test_sources
|
||||
testing/DHT_test.c)
|
||||
|
||||
set(exe_name TOX-app)
|
||||
|
||||
add_executable(TOX-app
|
||||
add_executable(${exe_name}
|
||||
${core_sources}
|
||||
${test_sources})
|
||||
|
||||
|
||||
if(WIN32)
|
||||
target_link_libraries(TOX-app ws2_32)
|
||||
endif(WIN32)
|
||||
target_link_libraries(${exe_name} ws2_32)
|
||||
endif()
|
||||
|
||||
if(CMAKE_COMPILER_IS_GNUCC)
|
||||
message(STATUS "==== GCC detected - Adding compiler flags")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Werror")
|
||||
endif()
|
||||
Reference in new issue
Block a user