-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
46 lines (37 loc) · 1.37 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
44
45
46
cmake_minimum_required(VERSION 3.6)
SET(CMAKE_CONFIGURATION_TYPES Debug Release CACHE TYPE INTERNAL FORCE)
SET(CMAKE_TOOLCHAIN_FILE "C:/vcpkg/scripts/buildsystems/vcpkg.cmake" CACHE PATH "Path to your vcpkg")
PROJECT(stereo_reconstruction_ss22)
SET(CMAKE_CXX_STANDARD 17)
SET(CMAKE_CXX_STANDARD_REQUIRED ON)
SET(CMAKE_CXX_EXTENSIONS OFF)
FIND_PACKAGE(Eigen3 CONFIG REQUIRED)
FIND_PACKAGE(OpenCV CONFIG REQUIRED)
find_package(suitesparse CONFIG REQUIRED)
FIND_PACKAGE(g2o CONFIG REQUIRED)
SET(HEADERS
FeatureDectector.h
BAOptimizer.h
BlockMatcher.h
Utils.h
Eigen.h
EightPoint.h
Reconstructor.hpp
DataLoader.hpp
PFMManager.hpp
)
SET(SOURCES
FeatureDectector.cpp
EightPoint.cpp
BlockMatcher.cpp
BAOptimizer.cpp
main.cpp
)
add_executable(stereo_reconstruction_ss22 ${HEADERS} ${SOURCES})
LINK_DIRECTORIES(${OpenCV_INCLUDE_DIRS})
target_include_directories(stereo_reconstruction_ss22 PUBLIC ${OpenCV_INCLUDE_DIRS})
target_include_directories(stereo_reconstruction_ss22 PUBLIC ${EIGEN3_INCLUDE_DIR})
TARGET_LINK_LIBRARIES(stereo_reconstruction_ss22 ${OpenCV_LIBS})
TARGET_LINK_LIBRARIES(stereo_reconstruction_ss22 Eigen3::Eigen)
TARGET_LINK_LIBRARIES(stereo_reconstruction_ss22 SuiteSparse::amd SuiteSparse::btf SuiteSparse::klu SuiteSparse::ldl)
TARGET_LINK_LIBRARIES(stereo_reconstruction_ss22 g2o::core g2o::stuff g2o::types_icp g2o::types_sba)