forked from LORD-MicroStrain/microstrain_inertial
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
48 lines (40 loc) · 1.03 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
47
48
cmake_minimum_required(VERSION 3.0.2)
project(microstrain_inertial_examples)
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
roslint
sensor_msgs
microstrain_inertial_msgs
)
catkin_package(
CATKIN_DEPENDS
roscpp
rospy
sensor_msgs
microstrain_inertial_msgs
cmake_modules
)
include_directories(
${catkin_INCLUDE_DIRS}
)
# CPP Listener
set(LISTENER_CPP listener_cpp)
set(LISTENER_CPP_SRC_FILES src/listener.cpp)
add_executable(${LISTENER_CPP} ${LISTENER_CPP_SRC_FILES})
target_link_libraries(${LISTENER_CPP} ${catkin_LIBRARIES})
add_dependencies(${LISTENER_CPP}
${catkin_EXPORTED_TARGETS}
${${PROJECT_NAME}_EXPORTED_TARGETS}
)
# Python Listener
catkin_install_python(PROGRAMS scripts/listener.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
# Install the C++ Examples
install(TARGETS ${LISTENER_CPP}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
# Install the launch files
install(DIRECTORY launch/ DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch)
roslint_cpp(${LISTENER_CPP_SRC_FILES})