kopia lustrzana https://github.com/OpenDroneMap/ODM
30 wiersze
1.0 KiB
CMake
30 wiersze
1.0 KiB
CMake
set(_proj_name opensfm)
|
|
set(_SB_BINARY_DIR "${SB_BINARY_DIR}/${_proj_name}")
|
|
|
|
ExternalProject_Add(${_proj_name}
|
|
DEPENDS ceres opencv opengv
|
|
PREFIX ${_SB_BINARY_DIR}
|
|
TMP_DIR ${_SB_BINARY_DIR}/tmp
|
|
STAMP_DIR ${_SB_BINARY_DIR}/stamp
|
|
#--Download step--------------
|
|
DOWNLOAD_DIR ${SB_DOWNLOAD_DIR}
|
|
URL https://github.com/mapillary/OpenSfM/archive/a4b07056aec1184692c1432fbdd1074710aec32b.zip
|
|
URL_MD5 42B2B1994C3309BBF4525C8CC1F6F741
|
|
#--Update/Patch step----------
|
|
UPDATE_COMMAND ""
|
|
#--Configure step-------------
|
|
SOURCE_DIR ${SB_SOURCE_DIR}/${_proj_name}
|
|
CONFIGURE_COMMAND cmake <SOURCE_DIR>/${_proj_name}/src
|
|
-DCERES_ROOT_DIR=${SB_INSTALL_DIR}
|
|
-DOpenCV_DIR=${SB_INSTALL_DIR}/share/OpenCV
|
|
#--Build step-----------------
|
|
BINARY_DIR ${_SB_BINARY_DIR}
|
|
#--Install step---------------
|
|
INSTALL_COMMAND ""
|
|
#--Output logging-------------
|
|
LOG_DOWNLOAD OFF
|
|
LOG_CONFIGURE OFF
|
|
LOG_BUILD OFF
|
|
)
|
|
|