forked from wg-perception/tabletop
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
49 lines (37 loc) · 1.43 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
cmake_minimum_required(VERSION 2.8)
project(object_recognition_tabletop)
find_package(catkin REQUIRED ecto ecto_pcl ecto_ros genmsg household_objects_database household_objects_database_msgs
moveit_core object_recognition_core object_recognition_msgs opencv_candidate
pcl_ros pluginlib rosconsole roscpp shape_msgs sql_database tf)
catkin_package(INCLUDE_DIRS include)
# deal with Python
catkin_python_setup()
add_subdirectory(python)
set(CMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE 1)
# include some directories
find_package(PCL REQUIRED)
find_package(Eigen REQUIRED)
include_directories(${catkin_INCLUDE_DIRS}
include
)
include_directories(SYSTEM ${Eigen_INCLUDE_DIRS}
${PCL_INCLUDE_DIRS}
)
add_subdirectory(src)
# add the tests
add_subdirectory(test)
# add the docs
catkin_doxygen(object_recognition_tabletop-doxygen ${CMAKE_CURRENT_SOURCE_DIR}/include)
ecto_sphinx(${CMAKE_CURRENT_SOURCE_DIR}/doc/source doc)
# install the configuration files
install(DIRECTORY ${PROJECT_SOURCE_DIR}/conf
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)
# install the include folder
install(DIRECTORY ${PROJECT_SOURCE_DIR}/include/object_recognition_tabletop/
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
)
# install the plugin file
install(FILES ${PROJECT_SOURCE_DIR}/db_plugin.xml
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)