1
cmake_minimum_required(VERSION 2.4.6)
2
include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)
4
# Set the build type. Options are:
5
# Coverage : w/ debug symbols, w/o optimization, w/ code-coverage
6
# Debug : w/ debug symbols, w/o optimization
7
# Release : w/o debug symbols, w/ optimization
8
# RelWithDebInfo : w/ debug symbols, w/ optimization
9
# MinSizeRel : w/o debug symbols, w/ optimization, stripped binaries
10
#set(ROS_BUILD_TYPE RelWithDebInfo)
16
#set the default path for built executables to the "bin" directory
17
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
18
#set the default path for built libraries to the "lib" directory
19
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)
25
src/openfabmap2_ros.cpp)
27
#uncomment if you have defined messages
29
#uncomment if you have defined services
33
# auto-generated dynamic reconfiguration GUI
34
#rosbuild_find_ros_package(dynamic_reconfigure)
35
#include(${dynamic_reconfigure_PACKAGE_PATH}/cmake/cfgbuild.cmake)
38
rosbuild_add_executable(run_node src/run_node.cpp ${OPENFABMAP_SRCS})
39
target_link_libraries(run_node ${OpenCV_LIBRARIES})
41
rosbuild_add_executable(learn_node src/learn_node.cpp ${OPENFABMAP_SRCS})
42
target_link_libraries(learn_node ${OpenCV_LIBRARIES})
44
#common commands for building c++ executables and libraries
45
#rosbuild_add_library(${PROJECT_NAME} src/example.cpp)
46
#target_link_libraries(${PROJECT_NAME} another_library)
47
#rosbuild_add_boost_directories()
48
#rosbuild_link_boost(${PROJECT_NAME} thread)
49
#rosbuild_add_executable(example examples/example.cpp)
50
#target_link_libraries(example ${PROJECT_NAME})
52
# build package sources