-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
37 lines (25 loc) · 1.06 KB
/
CMakeLists.txt
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
cmake_minimum_required(VERSION 3.3)
project(ccnxPing)
include( CTest )
set(CMAKE_C_STANDARD 99)
set(CMAKE_C_STANDARD_REQUIRED ON)
set(CCNX_HOME $ENV{CCNX_HOME})
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall")
set(CCNX_LIBRARIES longbow longbow-ansiterm parc ccnx_common ccnx_api_portal ccnx_transport_rta ccnx_api_control ccnx_api_notify)
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
set(CCNX_PING_CLIENT_SOURCE_FILES
ccnxPing_Client.c
ccnxPing_Common.c
ccnxPing_Stats.c)
set(CCNX_PING_SERVER_SOURCE_FILES
ccnxPing_Server.c
ccnxPing_Common.c)
include_directories(${CCNX_HOME}/include)
link_directories(${CCNX_HOME}/lib)
add_executable(ccnxPing_Client ${CCNX_PING_CLIENT_SOURCE_FILES})
target_link_libraries(ccnxPing_Client ${CCNX_LIBRARIES})
install(TARGETS ccnxPing_Client RUNTIME DESTINATION bin)
add_executable(ccnxPing_Server ${CCNX_PING_SERVER_SOURCE_FILES})
target_link_libraries(ccnxPing_Server ${CCNX_LIBRARIES})
install(TARGETS ccnxPing_Server RUNTIME DESTINATION bin)
add_test(EmptyTest, echo "OK")