From a4feb58881ed47da5bde00471651df6e96999db5 Mon Sep 17 00:00:00 2001 From: Philipp Lindenberger Date: Mon, 14 Nov 2022 17:07:39 +0100 Subject: [PATCH] Import Ceres via COLMAP (#10) --- CMakeLists.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0d9720d..a24004f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}