2013-07-30 02:45:53 +02:00
|
|
|
cmake_minimum_required(VERSION 2.6.0)
|
|
|
|
project(toxic C)
|
|
|
|
|
2013-08-08 03:52:11 +02:00
|
|
|
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-07-30 21:47:40 +02:00
|
|
|
prompt.c
|
2013-07-31 19:20:03 +02:00
|
|
|
friendlist.c
|
2013-08-08 16:00:12 +02:00
|
|
|
chat.c
|
|
|
|
configdir.c)
|
2013-07-30 02:45:53 +02:00
|
|
|
|
|
|
|
target_link_libraries(${exe_name}
|
|
|
|
curses)
|
|
|
|
|
|
|
|
linkCoreLibraries(${exe_name})
|