-
Notifications
You must be signed in to change notification settings - Fork 28
/
CMakeLists.txt
34 lines (27 loc) · 1 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
project (fast_bilateral_space_stereo)
cmake_minimum_required(VERSION 3.0)
cmake_policy(VERSION 3.0)
set(CMAKE_CONFIGURATION_TYPES Debug Release CACHE TYPE INTERNAL FORCE )
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
find_package(Eigen)
find_package(OpenCV 3)
find_package(Ceres)
# Source files
SET(FAST_BIL_SOURCES
src/main.cpp
src/bilateral_grid_simplified.cpp
src/bilateral_grid_simplified.h
src/fast_bilateral_solver.cpp
src/fast_bilateral_solver.h
src/stereo_matcher_birchfield_tomasi.cpp
src/stereo_matcher_birchfield_tomasi.h
)
include_directories(${EIGEN_INCLUDE_DIR} ${OpenCV_INCLUDE_DIRS} ${GLOG_INCLUDE_DIR} ${CERES_INCLUDE_DIRS})
# Create the executable
add_executable(fast_bilateral_space_stereo ${FAST_BIL_SOURCES})
if(MSVC)
set(LINK_LIBRARY ${CERES_LIBRARIES} ${OpenCV_LIBS} ${GLOG_LIBRARIES} shlwapi.lib)
else()
set(LINK_LIBRARY ${CERES_LIBRARIES} ${OpenCV_LIBS} ${GLOG_LIBRARIES})
endif()
target_link_libraries(fast_bilateral_space_stereo ${LINK_LIBRARY})