2015-11-13 08:40:52 +00:00
|
|
|
set(_proj_name ceres)
|
2015-11-16 11:41:44 +00:00
|
|
|
set(_SB_BINARY_DIR "${SB_BINARY_DIR}/${_proj_name}")
|
2015-11-13 08:40:52 +00:00
|
|
|
|
|
|
|
ExternalProject_Add(${_proj_name}
|
2015-12-15 11:27:49 +00:00
|
|
|
DEPENDS gflags
|
2015-11-13 08:40:52 +00:00
|
|
|
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
|
2015-11-13 13:46:01 +00:00
|
|
|
)
|