-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathCMakeLists.txt
42 lines (33 loc) · 1.23 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
cmake_minimum_required(VERSION 3.0.2)
project(warehouse_ros)
find_package(catkin REQUIRED COMPONENTS
roscpp
rostime
std_msgs
geometry_msgs
pluginlib
tf
)
find_package(Boost COMPONENTS system filesystem thread)
catkin_package(
INCLUDE_DIRS include
LIBRARIES warehouse_ros
CATKIN_DEPENDS roscpp rostime std_msgs geometry_msgs tf
DEPENDS Boost
)
include_directories(include ${catkin_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS})
set(warehouse_srcs
src/database_loader.cpp
src/transform_collection.cpp)
add_library(warehouse_ros SHARED ${warehouse_srcs})
target_link_libraries(warehouse_ros ${catkin_LIBRARIES} ${Boost_LIBRARIES})
target_compile_features(warehouse_ros PRIVATE cxx_defaulted_functions)
add_executable(warehouse_test_dbloader src/test_dbloader.cpp)
target_link_libraries(warehouse_test_dbloader warehouse_ros ${catkin_LIBRARIES} ${Boost_LIBRARIES})
install(TARGETS warehouse_ros
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_GLOBAL_BIN_DESTINATION})
install(DIRECTORY include/${PROJECT_NAME}/
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
FILES_MATCHING PATTERN "*.h" PATTERN "*.hpp")