-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
58 lines (58 loc) · 3.48 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
cmake_minimum_required(VERSION 2.8.3)
project(rs_v4r)
find_package(catkin REQUIRED robosherlock suturo_perception_msgs geometry_msgs ppf_recognizer_ros_msgs)
################################################################################
## Constants for project ##
################################################################################
set(NAMESPACE rs_v4r)
set(TYPESYSTEM_CPP_PATH ${PROJECT_SOURCE_DIR}/include/rs_v4r/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 robosherlock suturo_perception_msgs geometry_msgs actionlib_msgs image_transport ppf_recognizer_ros_msgs)
#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(
${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()
################################################################################
## Sub Projects ##
################################################################################
#If you want to divide your projects into subprojects include the subdirectories
#each containing a CMakeLists.txt here
#add_subdirectory(src/xxx)
add_library(${PROJECT_NAME} SHARED src/v4rProcessManager.cpp src/suturo_conversion.cpp include/rs_v4r/suturo_conversion.h)
target_link_libraries(${PROJECT_NAME} ${CATKIN_LIBRARIES})
rs_add_library(rs_v4rRecognitionAnnotator src/v4rRecognitionAnnotator.cpp)