Line | |
---|
1 | CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
|
---|
2 | SET(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true)
|
---|
3 |
|
---|
4 | PROJECT(rtnet_sdo_example)
|
---|
5 |
|
---|
6 | SET( ${PROJECT_NAME}_MAJOR_VERSION 1 )
|
---|
7 | SET( ${PROJECT_NAME}_MINOR_VERSION 0 )
|
---|
8 | SET( ${PROJECT_NAME}_PATCH_LEVEL 0 )
|
---|
9 |
|
---|
10 | ADD_DEFINITIONS(-DHAVE_NETINET_IN_H -DHAVE_INTTYPES_H)
|
---|
11 |
|
---|
12 | INCLUDE_DIRECTORIES(.)
|
---|
13 |
|
---|
14 | ADD_SUBDIRECTORY(common)
|
---|
15 |
|
---|
16 | INCLUDE_DIRECTORIES(${PROJECT_BINARY_DIR}
|
---|
17 | /usr/include/boost
|
---|
18 | /usr/local/include/thrift)
|
---|
19 |
|
---|
20 | ADD_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 | )
|
---|
29 | TARGET_LINK_LIBRARIES(rtnet_sdo_example lib_gpssthrift thrift rt ssl z pthread)
|
---|
30 |
|
---|
31 | INSTALL(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.