-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists_catkin.txt
75 lines (54 loc) · 1.99 KB
/
CMakeLists_catkin.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
cmake_minimum_required (VERSION 2.8 FATAL_ERROR)
project (srnp)
ADD_DEFINITIONS(-DBOOST_LOG_DYN_LINK)
find_package (catkin REQUIRED)
find_package (Boost REQUIRED
COMPONENTS
thread
system
serialization
date_time
log
log_setup
python
)
catkin_package(
INCLUDE_DIRS include
LIBRARIES srnp_print srnp_pair srnp_pair_space srnp_server srnp_client srnp_kernel
)
# BOOST PYTHON
include_directories(/usr/include/python2.7)
# Project Stuff
include_directories (include ${Boost_INCLUDE_DIRS})
# Pair - only for cout support
add_library (srnp_pair SHARED src/Pair.cpp)
# Pair Space
add_library (srnp_pair_space SHARED src/PairSpace.cpp)
target_link_libraries (srnp_pair_space ${Boost_LIBRARIES})
# SRNP Print
add_library (srnp_print SHARED src/srnp_print.cpp)
target_link_libraries (srnp_print ${Boost_LIBRARIES})
# Server
add_library (srnp_server SHARED src/server.cpp)
target_link_libraries (srnp_server srnp_pair srnp_pair_space ${Boost_LIBRARIES})
# Client
add_library (srnp_client SHARED src/client.cpp)
target_link_libraries (srnp_client srnp_pair srnp_pair_space ${Boost_LIBRARIES})
# Master
add_executable (srnp-master src/master_hub.cpp)
target_link_libraries (srnp-master srnp_print ${Boost_LIBRARIES})
# Wrapper for all
add_library (srnp_kernel SHARED src/srnp_kernel.cpp)
target_link_libraries (srnp_kernel srnp_pair srnp_server srnp_client srnp_pair_space srnp_print ${Boost_LIBRARIES})
# Python Wrapper
add_library (srnpy SHARED src/srnp_python.cpp)
target_link_libraries (srnpy srnp_kernel ${Boost_LIBRARIES})
set_target_properties(srnpy PROPERTIES PREFIX "")
# Test
add_executable (simple src/single_tests/simple.cpp)
target_link_libraries (simple srnp_kernel)
add_executable (simple2 src/single_tests/simple2.cpp)
target_link_libraries (simple2 srnp_kernel)
install (DIRECTORY include/srnp DESTINATION "include")
install (TARGETS srnp_print srnp_pair srnp_pair_space srnp_server srnp_client srnp_kernel DESTINATION "lib")
install (TARGETS srnp-master DESTINATION "bin")