kopia lustrzana https://github.com/OpenDroneMap/ODM
31 wiersze
1011 B
CMake
31 wiersze
1011 B
CMake
set(_proj_name ceres)
|
|
set(_SB_BINARY_DIR "${SB_BINARY_DIR}/${_proj_name}")
|
|
|
|
ExternalProject_Add(${_proj_name}
|
|
DEPENDS gflags
|
|
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
|
|
) |