2013-07-30 07:32:39 +08:00
|
|
|
cmake_minimum_required(VERSION 2.6.0)
|
|
|
|
project(toxic C)
|
|
|
|
|
2013-08-08 09:52:11 +08: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 07:42:04 +08:00
|
|
|
set(exe_name toxic)
|
2013-07-30 07:32:39 +08:00
|
|
|
|
|
|
|
add_executable(${exe_name}
|
2013-07-30 23:55:46 +08:00
|
|
|
main.c
|
2013-07-31 03:47:40 +08:00
|
|
|
prompt.c
|
2013-08-01 01:20:03 +08:00
|
|
|
friendlist.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)
|
2013-07-30 07:32:39 +08:00
|
|
|
|
|
|
|
linkCoreLibraries(${exe_name})
|