-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
46 lines (35 loc) · 1.04 KB
/
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
cmake_minimum_required(VERSION 3.0)
project(tiago_spnav_teleop LANGUAGES CXX)
find_package(catkin REQUIRED COMPONENTS
sensor_msgs
controller_interface
hardware_interface
pluginlib
roscpp
kdl_parser
urdf
)
find_package(orocos_kdl REQUIRED)
catkin_package()
include_directories(
include
${catkin_INCLUDE_DIRS}
${orocos_kdl_INCLUDE_DIRS}
)
add_library(${PROJECT_NAME} src/tiago_spnav_teleop.cpp)
target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES} ${orocos_kdl_LIBRARIES})
install(TARGETS ${PROJECT_NAME}
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
install(DIRECTORY config launch
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)
install(PROGRAMS scripts/init_spnav.py
scripts/stop_spnav.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
install(FILES tiago_spnav_teleop_plugins.xml
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)