kopia lustrzana https://github.com/OpenDroneMap/ODM
42 wiersze
1.2 KiB
CMake
42 wiersze
1.2 KiB
CMake
set(_proj_name openmvs)
|
|
set(_SB_BINARY_DIR "${SB_BINARY_DIR}/${_proj_name}")
|
|
|
|
externalproject_add(vcg
|
|
GIT_REPOSITORY https://github.com/cdcseacave/VCG.git
|
|
GIT_TAG master
|
|
UPDATE_COMMAND ""
|
|
SOURCE_DIR ${SB_SOURCE_DIR}/vcg
|
|
CONFIGURE_COMMAND ""
|
|
BUILD_IN_SOURCE 1
|
|
BUILD_COMMAND ""
|
|
INSTALL_COMMAND ""
|
|
)
|
|
|
|
ExternalProject_Add(${_proj_name}
|
|
DEPENDS ceres opencv vcg
|
|
PREFIX ${_SB_BINARY_DIR}
|
|
TMP_DIR ${_SB_BINARY_DIR}/tmp
|
|
STAMP_DIR ${_SB_BINARY_DIR}/stamp
|
|
#--Download step--------------
|
|
DOWNLOAD_DIR ${SB_DOWNLOAD_DIR}
|
|
GIT_REPOSITORY https://github.com/OpenDroneMap/openMVS
|
|
GIT_TAG 230
|
|
#--Update/Patch step----------
|
|
UPDATE_COMMAND ""
|
|
#--Configure step-------------
|
|
SOURCE_DIR ${SB_SOURCE_DIR}/${_proj_name}
|
|
CMAKE_ARGS
|
|
-DOpenCV_DIR=${SB_INSTALL_DIR}/lib/cmake/opencv4
|
|
-DVCG_ROOT=${SB_SOURCE_DIR}/vcg
|
|
-DCMAKE_BUILD_TYPE=Release
|
|
-DCMAKE_INSTALL_PREFIX=${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
|
|
)
|