moving external ceres

pull/249/head
edgarriba 2015-11-13 08:40:52 +00:00
rodzic a595339261
commit fcbfcf7855
2 zmienionych plików z 34 dodań i 15 usunięć

Wyświetl plik

@ -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)

Wyświetl plik

@ -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)