source: ntrip/trunk/GnssCenter/thrift/rtnet_sdo_example/CMakeLists.txt@ 8136

Last change on this file since 8136 was 4941, checked in by mervart, 12 years ago
File size: 1.1 KB
Line 
1CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
2SET(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true)
3
4PROJECT(rtnet_sdo_example)
5
6SET( ${PROJECT_NAME}_MAJOR_VERSION 1 )
7SET( ${PROJECT_NAME}_MINOR_VERSION 0 )
8SET( ${PROJECT_NAME}_PATCH_LEVEL 0 )
9
10ADD_DEFINITIONS(-DHAVE_NETINET_IN_H -DHAVE_INTTYPES_H)
11
12INCLUDE_DIRECTORIES(.)
13
14ADD_SUBDIRECTORY(common)
15
16INCLUDE_DIRECTORIES(${PROJECT_BINARY_DIR}
17 /usr/include/boost
18 /usr/local/include/thrift)
19
20ADD_EXECUTABLE(rtnet_sdo_example
21 rtnet_sdo_example.cpp
22 Client.cpp Client.h
23 RtnetDataHandler.cpp RtnetDataHandler.h
24 RtnetDataRequest.cpp RtnetDataRequest.h
25 RtnetDataListener.cpp RtnetDataListener.h
26 ConnectionRequiredRunnable.cpp ConnectionRequiredRunnable.h
27 ConnectionStatusMonitor.cpp ConnectionStatusMonitor.h
28 )
29TARGET_LINK_LIBRARIES(rtnet_sdo_example lib_gpssthrift thrift rt ssl z pthread)
30
31INSTALL(TARGETS rtnet_sdo_example DESTINATION bin PERMISSIONS
32 OWNER_READ OWNER_WRITE OWNER_EXECUTE
33 GROUP_READ GROUP_EXECUTE
34 WORLD_READ WORLD_EXECUTE
35)
36
Note: See TracBrowser for help on using the repository browser.