summaryrefslogtreecommitdiff
path: root/testing/toxic/CMakeLists.txt
blob: b59cb55e277dd0b9248d8ec976497dcff1b73187 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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})
set(exe_name toxic)

add_executable(${exe_name}
	main.c
	windows.c
	prompt.c
	friendlist.c
	dhtstatus.c
	chat.c
	configdir.c)

if(CURSES_HAVE_WIDE_CHAR)
	add_definitions( -D_XOPEN_SOURCE_EXTENDED )
	add_definitions( -DHAVE_WIDE_CHAR )
endif()

include_directories(${CURSES_INCLUDE_DIR})

target_link_libraries(${exe_name}
	${CURSES_LIBRARIES})

linkCoreLibraries(${exe_name})