-
Notifications
You must be signed in to change notification settings - Fork 6
/
CMakeLists.txt
60 lines (48 loc) · 1.78 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
56
57
58
59
60
cmake_minimum_required(VERSION 2.8.3)
project(household_objects_database)
set(PACKAGE_DEPS
household_objects_database_msgs
manipulation_msgs
sql_database
roscpp
tf
actionlib
)
find_package(catkin REQUIRED COMPONENTS ${PACKAGE_DEPS})
find_package(Boost REQUIRED COMPONENTS filesystem system)
catkin_package(
CATKIN_DEPENDS household_objects_database_msgs manipulation_msgs roscpp sql_database
INCLUDE_DIRS include
LIBRARIES mesh_loader ${PROJECT_NAME}
)
include_directories(include ply ${Boost_INCLUDE_DIRS} ${catkin_INCLUDE_DIRS})
install(DIRECTORY include/${PROJECT_NAME}/ DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION})
# build some libraries
add_library(${PROJECT_NAME}
src/objects_database.cpp
src/database_helper_classes.cpp
)
add_dependencies(${PROJECT_NAME} ${catkin_EXPORTED_TARGETS})
add_library(mesh_loader
src/mesh_loader.cpp
src/ply.c
)
install(TARGETS ${PROJECT_NAME} mesh_loader DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION})
# build the executables
add_executable(objects_database_node
nodes/objects_database_node.cpp
)
target_link_libraries(objects_database_node ${PROJECT_NAME} ${catkin_LIBRARIES})
#add_executable(objects_database_node_simple
# nodes/objects_database_node_simple.cpp
#)
#target_link_libraries(objects_database_node_simple ${PROJECT_NAME} ${catkin_LIBRARIES})
add_executable(insert_model
src/insert_model.cpp
)
target_link_libraries(insert_model ${PROJECT_NAME} mesh_loader boost_filesystem boost_system ${catkin_LIBRARIES})
install(TARGETS insert_model objects_database_node DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})
# install the scripts
install(PROGRAMS scripts/register.py DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})
# install the config folders
install(DIRECTORY config launch DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})