-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathCMakeLists.txt
58 lines (46 loc) · 1.17 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
47
48
49
50
51
52
53
54
55
56
57
cmake_minimum_required(VERSION 3.0.0)
project(hwsfm VERSION 0.1.0)
add_definitions(-std=c++11)
LIST(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake_modules)
set(OPENCV_ENABLE_NONFREE)
find_package(OpenCV 3.4 REQUIRED)
find_package(Pangolin 0.4 REQUIRED)
find_package(G2O REQUIRED)
find_package(PCL REQUIRED)
include_directories(
"/usr/include/eigen3"
include
${Pangolin_INCLUDE_DIRS}
${G2O_INCLUDE_DIRS}
${PCL_INCLUDE_DIRS}
)
add_library(setting src/setting.cpp)
target_link_libraries(setting ${OpenCV_LIBS})
add_library(frame src/frame.cpp)
target_link_libraries(frame ${OpenCV_LIBS})
add_library(mappoint src/mappoint.cpp)
target_link_libraries(mappoint ${OpenCV_LIBS})
add_library(viewer src/viewer.cpp)
target_link_libraries(viewer
${Pangolin_LIBRARIES}
)
add_library(types_six_dof_expmap src/types_six_dof_expmap.cpp)
target_link_libraries(types_six_dof_expmap
${G2O_LIBS}
)
add_library(hwsfm src/hwsfm.cpp)
target_link_libraries(hwsfm
frame
mappoint
viewer
setting
types_six_dof_expmap
${OpenCV_LIBS}
${G2O_LIBS}
${PCL_LIBRARIES}
)
add_executable(main src/main.cpp)
target_link_libraries(main
${OpenCV_LIBS}
hwsfm
)