-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrosbuild.cmake
27 lines (22 loc) · 976 Bytes
/
rosbuild.cmake
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
cmake_minimum_required(VERSION 2.4.6)
include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)
# Set the build type. Options are:
# Coverage : w/ debug symbols, w/o optimization, w/ code-coverage
# Debug : w/ debug symbols, w/o optimization
# Release : w/o debug symbols, w/ optimization
# RelWithDebInfo : w/ debug symbols, w/ optimization
# MinSizeRel : w/o debug symbols, w/ optimization, stripped binaries
#set(ROS_BUILD_TYPE RelWithDebInfo)
rosbuild_init()
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)
find_package(OpenRAVE REQUIRED)
add_definitions(--std=c++0x -O3)
include_directories(${OpenRAVE_INCLUDE_DIRS})
link_directories(${OpenRAVE_LIBRARY_DIRS})
rosbuild_add_library(${PROJECT_NAME}_plugin
src/or_fcl_plugin.cpp
src/FCLCollisionChecker.cpp
)
rosbuild_link_boost(${PROJECT_NAME}_plugin system)
target_link_libraries(${PROJECT_NAME}_plugin ${OpenRAVE_LIBRARIES} fcl)