blob: 940326ba9fd2faf054bf10d2b9d1551c5b3af1f3 (
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
29
30
31
32
33
34
35
36
37
38
39
40
41
|
cmake_minimum_required(VERSION 2.8)
pkg_check_modules(IPC REQUIRED ipc)
# use the variable <RESULTNAME>_INCLUDE_DIRS to get include paths
include_directories(
${IPC_INCLUDE_DIRS}
../../include
)
# Define project Targets
set(CLIENT_TEST_BINARY_NAME client_test)
add_executable(${CLIENT_TEST_BINARY_NAME}
client_main.c
client_test_common.c
client_test_init_term.c
client_test_telltale.c
client_test_shiftposition.c
client_test_speed.c
client_test_tacho.c
client_test_tripcomputer.c
client_test_register_notify.c
)
# use the variable <RESULTNAME>_LIBRARIES to get library paths
target_link_libraries(${CLIENT_TEST_BINARY_NAME}
${IPC_LIBRARIES}
${TARGET_NAME}
pthread
cunit
)
# Define project Targets
set(DUMMY_SERVER_BINARY_NAME dummy_server)
add_executable(${DUMMY_SERVER_BINARY_NAME} dummy_server.c)
target_link_libraries(${DUMMY_SERVER_BINARY_NAME}
${IPC_LIBRARIES}
pthread
)
|