-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
34 lines (27 loc) · 1.24 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
cmake_minimum_required(VERSION 2.8)
project(ecto_corrector)
message(STATUS "~~ ${PROJECT_NAME}")
find_package(ecto REQUIRED) #brings in rosbuild_lite
#find_package(Boost COMPONENTS signals thread REQUIRED)
#include(rosbuild_lite.cmake)
rosbuild_lite_init() # found in rosbuild_lite
find_ros_package(pose_corrector)
if(NOT pose_corrector_FOUND)
message("**\n** Disabling build of ${PROJECT_NAME} due to missing dependency pose_corrector\n**")
return()
endif()
find_ros_package(sensor_msgs REQUIRED)
find_ros_package(geometry_msgs REQUIRED)
find_ros_package(tabletop_object_detector REQUIRED) #for TODServiceCaller. can be removed once there's an ecto_tod
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
ecto_python_env_gen(${CMAKE_BINARY_DIR}/lib)
include_directories(${sensor_msgs_INCLUDES})
include_directories(${geometry_msgs_INCLUDES})
include_directories(${pose_corrector_INCLUDES})
include_directories(${tabletop_object_detector_INCLUDES})
#TODO: some way to detect this automatically rather than requiring it as an argument?
if(NOT ecto_pcl_INCLUDES)
message("**\n\n** Need to know where ecto_pcl includes are. Use option -Decto_pcl_INCLUDES=<directory>\n\n**")
endif()
include_directories(${ecto_pcl_INCLUDES})
add_subdirectory(src)