kopia lustrzana https://github.com/OpenDroneMap/ODM
moving external ceres
rodzic
a595339261
commit
fcbfcf7855
|
@ -1,15 +0,0 @@
|
|||
ExternalProject_Add(ceres
|
||||
URL http://ceres-solver.org/ceres-solver-1.10.0.tar.gz
|
||||
URL_MD5 dbf9f452bd46e052925b835efea9ab16
|
||||
BINARY_DIR ${SB_BUILD_DIR}
|
||||
INSTALL_DIR ${SB_INSTALL_PREFIX}
|
||||
DOWNLOAD_DIR ${SB_DOWNLOAD_LOCATION}
|
||||
CMAKE_ARGS
|
||||
-DCMAKE_C_FLAGS=-fPIC
|
||||
-DCMAKE_CXX_FLAGS=-fPIC
|
||||
-DBUILD_EXAMPLES=OFF
|
||||
-DBUILD_TESTING=OFF
|
||||
-DCMAKE_INSTALL_PREFIX:PATH=${SB_INSTALL_PREFIX}
|
||||
)
|
||||
|
||||
set(CERES_DIR ${SB_INSTALL_PREFIX}/share)
|
|
@ -0,0 +1,34 @@
|
|||
set(_proj_name ceres)
|
||||
set(_SB_BINARY_DIR "${CMAKE_BINARY_DIR}/${_proj_name}")
|
||||
|
||||
ExternalProject_Add(${_proj_name}
|
||||
PREFIX ${_SB_BINARY_DIR}
|
||||
TMP_DIR ${_SB_BINARY_DIR}/tmp
|
||||
STAMP_DIR ${_SB_BINARY_DIR}/stamp
|
||||
#--Download step--------------
|
||||
DOWNLOAD_DIR ${SB_DOWNLOAD_DIR}
|
||||
URL http://ceres-solver.org/ceres-solver-1.10.0.tar.gz
|
||||
URL_MD5 dbf9f452bd46e052925b835efea9ab16
|
||||
#--Update/Patch step----------
|
||||
UPDATE_COMMAND ""
|
||||
#--Configure step-------------
|
||||
SOURCE_DIR ${SB_SOURCE_DIR}/${_proj_name}
|
||||
CMAKE_ARGS
|
||||
-DCMAKE_C_FLAGS=-fPIC
|
||||
-DCMAKE_CXX_FLAGS=-fPIC
|
||||
-DBUILD_EXAMPLES=OFF
|
||||
-DBUILD_TESTING=OFF
|
||||
-DCMAKE_INSTALL_PREFIX:PATH=${SB_INSTALL_DIR}
|
||||
#--Build step-----------------
|
||||
BINARY_DIR ${_SB_BINARY_DIR}
|
||||
#--Install step---------------
|
||||
INSTALL_DIR ${SB_INSTALL_DIR}
|
||||
#--Output logging-------------
|
||||
LOG_DOWNLOAD OFF
|
||||
LOG_CONFIGURE OFF
|
||||
LOG_BUILD OFF
|
||||
)
|
||||
|
||||
set(CERES_DIR ${SB_INSTALL_DIR}/share)
|
||||
|
||||
|
Ładowanie…
Reference in New Issue