-
Notifications
You must be signed in to change notification settings - Fork 54
/
CMakeLists.txt
43 lines (33 loc) · 1.09 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
cmake_minimum_required(VERSION 2.8.3)
project(stereo_dense_reconstruction)
include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)
rosbuild_init()
IF(NOT ROS_BUILD_TYPE)
SET(ROS_BUILD_TYPE Release)
ENDIF()
MESSAGE("Build type: " ${ROS_BUILD_TYPE})
rosbuild_find_ros_package(dynamic_reconfigure)
include(${dynamic_reconfigure_PACKAGE_PATH}/cmake/cfgbuild.cmake)
gencfg()
find_package(OpenCV REQUIRED)
set(INC_DIR ./include)
set(LIBELAS_SRC_DIR src/elas)
set(CMAKE_CXX_FLAGS "-msse3")
set(Boost_USE_STATIC_LIBS OFF)
set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_STATIC_RUNTIME OFF)
find_package(Boost 1.54.0 COMPONENTS system filesystem program_options REQUIRED)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)
FILE(GLOB LIBELAS_SRC_FILES "src/elas/*.cpp")
include_directories(
${OpenCV_INCLUDE_DIRS}
${LIBELAS_SRC_DIR}
${Boost_INCLUDE_DIRS}
${INC_DIR}
)
rosbuild_add_executable(dense_reconstruction
src/dense_reconstruction.cpp
${LIBELAS_SRC_FILES}
)
target_link_libraries(dense_reconstruction ${OpenCV_LIBS} "-lpopt")