Project

General

Profile

Statistics
| Branch: | Revision:

root / vision / CMakeLists.txt @ b1055c82

History | View | Annotate | Download (1.32 KB)

1
cmake_minimum_required(VERSION 2.4.6)
2
include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)
3
find_package(OpenCV REQUIRED)
4

    
5
# Set the build type.  Options are:
6
#  Coverage       : w/ debug symbols, w/o optimization, w/ code-coverage
7
#  Debug          : w/ debug symbols, w/o optimization
8
#  Release        : w/o debug symbols, w/ optimization
9
#  RelWithDebInfo : w/ debug symbols, w/ optimization
10
#  MinSizeRel     : w/o debug symbols, w/ optimization, stripped binaries
11
#set(ROS_BUILD_TYPE RelWithDebInfo)
12

    
13
rosbuild_init()
14

    
15
#set the default path for built executables to the "bin" directory
16
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
17
#set the default path for built libraries to the "lib" directory
18
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)
19

    
20
#uncomment if you have defined messages
21
rosbuild_genmsg()
22
#uncomment if you have defined services
23
#rosbuild_gensrv()
24

    
25
rosbuild_add_executable(v2v3_converter src/v2v3_converter.cpp)
26

    
27
#common commands for building c++ executables and libraries
28
#rosbuild_add_library(${PROJECT_NAME} src/example.cpp)
29
#target_link_libraries(${PROJECT_NAME} another_library)
30
#rosbuild_add_boost_directories()
31
#rosbuild_link_boost(${PROJECT_NAME} thread)
32
#rosbuild_add_executable(example examples/example.cpp)
33
#target_link_libraries(example ${PROJECT_NAME})
34
target_link_libraries(v2v3_converter ${OpenCV_LIBS})