Skip to content

Commit

Permalink
Import Ceres via COLMAP (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil26AT authored Nov 14, 2022
1 parent 12a8bf5 commit a4feb58
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ project(PyCeres)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

find_package(Eigen3 3.3 REQUIRED)
find_package(Ceres 2.1 REQUIRED)
find_package(COLMAP REQUIRED)

if(${CERES_VERSION} VERSION_LESS "2.2.0")
if(${CERES_VERSION} VERSION_LESS "2.1.0")
message( SEND_ERROR "Ceres version >= 2.1 required." )
elseif(${CERES_VERSION} VERSION_LESS "2.2.0")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17")
endif()
find_package(COLMAP REQUIRED)

set(PYCERES_INCLUDE_DIRS
${EIGEN3_INCLUDE_DIR}
Expand Down

0 comments on commit a4feb58

Please sign in to comment.