-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathCMakeLists.txt
55 lines (46 loc) · 1.46 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
49
50
51
52
53
54
55
cmake_minimum_required(VERSION 2.8.4)
project(odometry_transformer)
find_package(catkin
REQUIRED COMPONENTS
roscpp
nav_msgs
tf2_geometry_msgs
tf2_ros geometry_msgs
dynamic_reconfigure
nodelet
pluginlib
)
include_directories(include ${catkin_INCLUDE_DIRS})
#######################
# DYNAMIC RECONFIGURE #
#######################
generate_dynamic_reconfigure_options(cfg/OdometryTransformer.cfg)
catkin_package()
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
set(CMAKE_BUILD_TYPE Release)
#############
# LIBRARIES #
#############
add_library(${PROJECT_NAME} src/odometry_transformer.cc
src/odometry_transformer_nodelet.cc)
target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES})
############
# Binaries #
############
add_executable(odometry_transformer_node src/odometry_transformer_node.cc)
target_link_libraries(odometry_transformer_node ${PROJECT_NAME} ${catkin_LIBRARIES})
add_dependencies(odometry_transformer_node ${PROJECT_NAME}_gencfg)
add_executable(test_odometry_publisher test/test_odometry_publisher.cc)
target_link_libraries(test_odometry_publisher ${catkin_LIBRARIES})
##########
# EXPORT #
##########
install(TARGETS ${PROJECT_NAME}
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
install(FILES nodelet_plugin.xml
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)