-
Notifications
You must be signed in to change notification settings - Fork 14
/
CMakeLists.txt
43 lines (32 loc) · 1.08 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
cmake_minimum_required(VERSION 2.8)
project(object_recognition_transparent_objects)
find_package(PCL REQUIRED)
# Remove vtkproj4 from PCL_LIBRARIES as bug
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=819741
list(REMOVE_ITEM PCL_LIBRARIES vtkproj4)
find_package(catkin QUIET)
if (catkin_FOUND)
find_package(catkin REQUIRED ecto object_recognition_core opencv_candidate)
catkin_package(INCLUDE_DIRS include)
#install targets for all things python
catkin_python_setup()
include_directories(${catkin_INCLUDE_DIRS})
else()
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
endif()
find_package(Boost REQUIRED program_options signals)
find_package(OpenCV REQUIRED)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
add_subdirectory(src)
if (${catkin_FOUND})
add_subdirectory(cells)
endif()
# deal with the tests
option(BUILD_TEST "Build tests" ON)
if(BUILD_TEST)
enable_testing()
add_subdirectory(test)
endif()
# add docs
ecto_sphinx(${CMAKE_CURRENT_SOURCE_DIR}/doc/source doc)