-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
45 lines (38 loc) · 1001 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
cmake_minimum_required(VERSION 3.0.2)
set(SETUPTOOLS_DEB_LAYOUT OFF CACHE BOOL "Build with old setup.py convention")
project(sl1m_ros)
## C++ 11
set (CMAKE_CXX_STANDARD 14)
## Find dependecies
set(CATKIN_COMPONENTS_DEPENDENCIES
rospy
visualization_msgs
tf2_msgs
)
find_package(catkin REQUIRED COMPONENTS
${CATKIN_COMPONENTS_DEPENDENCIES} message_generation)
find_package(sl1m REQUIRED)
## Python package
catkin_python_setup()
## catkin specific configuration
catkin_package(
# INCLUDE_DIRS include
# LIBRARIES ${PROJECT_NAME}
CATKIN_DEPENDS ${CATKIN_COMPONENTS_DEPENDENCIES} message_runtime
# DEPENDS system_lib
)
## Install nodes
install(PROGRAMS
src/nodes/sl1m_ros
src/nodes/hpp_rbprm_server
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
## Mark other files for installation (e.g. launch and bag files, etc.)
install(DIRECTORY
launch
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)
install(DIRECTORY
config
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)