-
Notifications
You must be signed in to change notification settings - Fork 5
/
CMakeLists.txt
38 lines (29 loc) · 1.83 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
cmake_minimum_required(VERSION 2.8.11)
project(ColmapPrj)
set(THISDIR "/home/er/Documents/d_dev/colmap_uti")
find_package(COLMAP REQUIRED)
# or to require a specific version: find_package(COLMAP 3.4 REQUIRED)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fopenmp -std=c++17")
include_directories(${COLMAP_INCLUDE_DIRS} ${THISDIR})
link_directories(${COLMAP_LINK_DIRS})
add_executable(colmap_sfm colmap_sfm.cpp)
add_executable(colmap_export_features colmap_export_features.cpp)
add_executable(colmap_import_features colmap_import_features.cpp)
add_executable(colmap_import_features_batch colmap_import_features_batch.cpp)
add_executable(colmap_import_Rt colmap_import_Rt.cpp)
add_executable(colmap_transfer_features colmap_transfer_features.cpp)
add_executable(colmap_modify_intrinsics colmap_modify_intrinsics.cpp)
add_executable(colmap_add_camera colmap_add_camera.cpp)
add_executable(colmap_export_Rt colmap_export_Rt.cpp)
add_executable(colmap_init_poses colmap_init_poses.cpp)
target_link_libraries(colmap_sfm ${COLMAP_LIBRARIES})
target_link_libraries(colmap_export_features ${COLMAP_LIBRARIES})
target_link_libraries(colmap_import_features ${COLMAP_LIBRARIES})
target_link_libraries(colmap_import_features_batch ${COLMAP_LIBRARIES})
target_link_libraries(colmap_import_Rt ${COLMAP_LIBRARIES})
target_link_libraries(colmap_transfer_features ${COLMAP_LIBRARIES})
target_link_libraries(colmap_modify_intrinsics ${COLMAP_LIBRARIES})
target_link_libraries(colmap_add_camera ${COLMAP_LIBRARIES})
target_link_libraries(colmap_export_Rt ${COLMAP_LIBRARIES})
target_link_libraries(colmap_init_poses ${COLMAP_LIBRARIES})
install(TARGETS colmap_sfm colmap_export_features colmap_import_features colmap_import_features_batch colmap_import_Rt colmap_transfer_features colmap_modify_intrinsics colmap_add_camera colmap_export_Rt colmap_init_poses DESTINATION "bin")