forked from jonathanventura/spherical-sfm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
46 lines (35 loc) · 1.61 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
cmake_minimum_required( VERSION 2.6 )
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
if (NOT CMAKE_BUILD_TYPE)
message(STATUS "No build type selected, default to Release")
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "build type" FORCE)
endif()
project( spherical-sfm )
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall")
find_package( Ceres REQUIRED )
include_directories( ${CERES_INCLUDE_DIRS} )
find_package( OpenCV REQUIRED )
include_directories( ${OPENCV_INCLUDE_DIRS} )
find_package( Eigen3 REQUIRED )
include_directories( ${EIGEN3_INCLUDE_DIR} )
include_directories( include )
add_library( sphericalsfm
include/sphericalsfm/ray.h
include/sphericalsfm/so3.h src/so3.cpp
include/sphericalsfm/sparse.hpp
include/sphericalsfm/sfm.h src/sfm.cpp
include/sphericalsfm/sfm_types.h src/sfm_types.cpp
include/sphericalsfm/estimator.h
include/sphericalsfm/msac.h
include/sphericalsfm/preemptive_ransac.h
include/sphericalsfm/spherical_estimator.h src/spherical_estimator.cpp
include/sphericalsfm/triangulation_estimator.h src/triangulation_estimator.cpp
include/sphericalsfm/spherical_fast_estimator.h src/spherical_fast_estimator.cpp
include/sphericalsfm/plane_estimator.h src/plane_estimator.cpp
include/sphericalsfm/spherical_utils.h src/spherical_utils.cpp
include/sphericalsfm/rotation_averaging.h src/rotation_averaging.cpp
)
#target_compile_features( sphericalsfm PRIVATE cxx_alias_templates )
target_link_libraries( sphericalsfm ${CERES_LIBRARIES} )
target_link_libraries( sphericalsfm ${OpenCV_LIBS} )
add_subdirectory( examples )