1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-07-01 18:37:46 +02:00
toxic/src/CMakeLists.txt

24 lines
500 B
CMake
Raw Normal View History

2013-07-30 02:45:53 +02:00
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 02:45:53 +02:00
set(exe_name toxic)
add_executable(${exe_name}
2013-07-30 17:55:46 +02:00
main.c
2013-08-13 02:21:03 +02:00
windows.c
prompt.c
2013-07-31 19:20:03 +02:00
friendlist.c
2013-08-11 04:48:02 +02:00
dhtstatus.c
2013-08-08 16:00:12 +02:00
chat.c
configdir.c)
2013-07-30 02:45:53 +02:00
include_directories(${CURSES_INCLUDE_DIR})
2013-07-30 02:45:53 +02:00
target_link_libraries(${exe_name}
${CURSES_LIBRARIES})
2013-07-30 02:45:53 +02:00
linkCoreLibraries(${exe_name})