toxcore/testing/toxic/CMakeLists.txt

22 lines
443 B
CMake
Raw Normal View History

cmake_minimum_required(VERSION 2.6.0)
project(toxic C)
execute_process(COMMAND git rev-list HEAD --count OUTPUT_VARIABLE COMMIT)
SET(GCC_COVERAGE_COMPILE_FLAGS '-DTOXICVER="0.1.1_r${COMMIT}"')
add_definitions(${GCC_COVERAGE_COMPILE_FLAGS})
2013-07-30 07:42:04 +08:00
set(exe_name toxic)
add_executable(${exe_name}
2013-07-30 23:55:46 +08:00
main.c
2013-08-13 08:21:03 +08:00
windows.c
prompt.c
2013-08-01 01:20:03 +08:00
friendlist.c
2013-08-11 10:48:02 +08:00
dhtstatus.c
2013-08-08 22:00:12 +08:00
chat.c
configdir.c)
2013-07-30 08:45:53 +08:00
target_link_libraries(${exe_name}
curses)
linkCoreLibraries(${exe_name})