-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
64 lines (60 loc) · 3.4 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
61
62
63
64
cmake_minimum_required(VERSION 2.8.3)
project(rs_hsrb_perception)
find_package(catkin REQUIRED robosherlock suturo_perception_msgs geometry_msgs)
################################################################################
## Constants for project ##
################################################################################
set(NAMESPACE rs_hsrb_perception)
set(TYPESYSTEM_CPP_PATH ${PROJECT_SOURCE_DIR}/include/rs_hsrb_perception/types)
set(TYPESYSTEM_XML_PATH ${PROJECT_SOURCE_DIR}/descriptors/typesystem)
set(ANNOTATOR_PATH ${PROJECT_SOURCE_DIR}/descriptors/annotators)
set(ENGINE_PATH ${PROJECT_SOURCE_DIR}/descriptors/analysis_engines)
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
################################################################################
## Configure project configuration files ##
################################################################################
configure_file(${RS_PROJECT_CONFIG} ${PROJECT_SOURCE_DIR}/cmake/${PROJECT_NAME}_config.cmake @ONLY)
################################################################################
## Find all include directories ##
################################################################################
find_include_dirs(RS_INCLUDE_DIRS_LIST)
catkin_package(
INCLUDE_DIRS include ${RS_INCLUDE_DIRS_LIST} ${catkin_INCLUDE_DIRS}
LIBRARIES ${PROJECT_NAME}
CFG_EXTRAS ${PROJECT_NAME}_config.cmake
CATKIN_DEPENDS suturo_perception_msgs geometry_msgs
)
################################################################################
## Package dependencies ##
################################################################################
#Add required catkin packages here
#find_package(catkin REQUIRED COMPONENTS xxx)
#Add required system packages here
#find_package(xxx)
################################################################################
## Build ##
################################################################################
## Specify additional locations of header files
## Your package locations should be listed before other locations
include_directories(
include
${RS_INCLUDE_DIRS_LIST}
${catkin_INCLUDE_DIRS}
)
################################################################################
## Update analysis engines, typesystem and include all relevant files ##
################################################################################
## generate classes from the typesystem xml files
generate_type_system(robosherlock)
#find all relevant files
find_additional_files()
# Utilities
add_library(${PROJECT_NAME} SHARED src/SuturoProcessManager.cpp src/suturo_conversion.cpp include/rs_hsrb_perception/suturo_conversion.h)
target_link_libraries(${PROJECT_NAME} ${CATKIN_LIBRARIES})
# Annotators / Fixed Flow Types
rs_add_library(rs_SuturoClassifier src/SuturoClassifier.cpp)
target_link_libraries(rs_SuturoClassifier ${PROJECT_NAME})
rs_add_library(rs_SaveClusterCloudsAndImages src/SaveClusterCloudsAndImages.cpp)
target_link_libraries(rs_SaveClusterCloudsAndImages ${catkin_LIBRARIES})
rs_add_library(rs_RegionAnnotator src/RegionAnnotator.cpp)
target_link_libraries(rs_RegionAnnotator ${catkin_LIBRARIES})