-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
52 lines (41 loc) · 1014 Bytes
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
cmake_minimum_required(VERSION 2.8.3)
project(euclid_depth_transcode)
find_package(catkin REQUIRED COMPONENTS
roscpp
std_msgs
image_transport
nodelet
cv_bridge
)
catkin_package(
CATKIN_DEPENDS
)
###########
## Build ##
###########
include_directories(
${catkin_INCLUDE_DIRS}
)
add_library(EuclidDepthTranscode src/euclid_depth_transcode.cpp)
target_link_libraries( EuclidDepthTranscode
${catkin_LIBRARIES}
${roscpp_LIBRARIES}
)
# Install nodelet library
install(TARGETS EuclidDepthTranscode
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
# Install header files
install(DIRECTORY src/
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
)
# Install launch files
install(DIRECTORY launch/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch
)
# Install xml files
install(FILES nodelet_plugins.xml
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)