2019-05-18 21:04:24 +02:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
2019-05-17 17:38:01 +02:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO cdcseacave/openMVS
|
2021-09-28 20:50:35 +02:00
|
|
|
REF v1.1.1
|
2021-11-03 08:40:17 +01:00
|
|
|
SHA512 eeb15d0756f12136a1e7938a0eed97024d564eef3355f3bb6abf6c681e38919011e1a133d89ca360f463e7fed5feb8e0138a0fe9be4c25b6a13ba4b042aef3eb
|
2019-05-17 17:38:01 +02:00
|
|
|
HEAD_REF master
|
2020-08-28 07:13:05 +02:00
|
|
|
PATCHES
|
|
|
|
fix-build.patch
|
2021-09-28 03:12:39 +03:00
|
|
|
fix-build-boost-1_77_0.patch
|
2019-05-17 17:38:01 +02:00
|
|
|
)
|
|
|
|
|
2020-08-28 07:13:05 +02:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
2021-09-28 03:12:39 +03:00
|
|
|
FEATURES
|
|
|
|
cuda OpenMVS_USE_CUDA
|
|
|
|
openmp OpenMVS_USE_OPENMP
|
2020-08-28 07:13:05 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
file(REMOVE "${SOURCE_PATH}/build/Modules/FindCERES.cmake")
|
|
|
|
file(REMOVE "${SOURCE_PATH}/build/Modules/FindCGAL.cmake")
|
|
|
|
file(REMOVE "${SOURCE_PATH}/build/Modules/FindEIGEN.cmake")
|
|
|
|
|
2021-09-28 03:12:39 +03:00
|
|
|
vcpkg_cmake_configure(
|
2019-05-17 17:38:01 +02:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2020-08-28 07:13:05 +02:00
|
|
|
OPTIONS ${FEATURE_OPTIONS}
|
|
|
|
-DOpenMVS_USE_NONFREE=ON
|
|
|
|
-DOpenMVS_USE_CERES=OFF
|
|
|
|
-DOpenMVS_USE_FAST_FLOAT2INT=ON
|
|
|
|
-DOpenMVS_USE_FAST_INVSQRT=OFF
|
|
|
|
-DOpenMVS_USE_FAST_CBRT=ON
|
|
|
|
-DOpenMVS_USE_SSE=ON
|
|
|
|
-DOpenMVS_USE_OPENGL=ON
|
2019-09-27 10:41:02 -07:00
|
|
|
-DOpenMVS_USE_BREAKPAD=OFF
|
2020-08-28 07:13:05 +02:00
|
|
|
OPTIONS_RELEASE
|
|
|
|
-DOpenMVS_BUILD_TOOLS=ON
|
|
|
|
OPTIONS_DEBUG
|
|
|
|
-DOpenMVS_BUILD_TOOLS=OFF
|
2019-05-17 17:38:01 +02:00
|
|
|
)
|
|
|
|
|
2021-09-28 03:12:39 +03:00
|
|
|
vcpkg_cmake_install()
|
2019-05-17 17:38:01 +02:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
2019-05-18 21:04:24 +02:00
|
|
|
|
2021-10-07 05:57:42 +02:00
|
|
|
vcpkg_fixup_cmake_targets()
|
2020-08-28 07:13:05 +02:00
|
|
|
file(READ ${CURRENT_PACKAGES_DIR}/share/openmvs/OpenMVSTargets-release.cmake TARGETS_CMAKE)
|
|
|
|
string(REPLACE "bin/InterfaceCOLMAP" "tools/openmvs/InterfaceCOLMAP" TARGETS_CMAKE "${TARGETS_CMAKE}")
|
|
|
|
string(REPLACE "bin/InterfaceVisualSFM" "tools/openmvs/InterfaceVisualSFM" TARGETS_CMAKE "${TARGETS_CMAKE}")
|
|
|
|
string(REPLACE "bin/DensifyPointCloud" "tools/openmvs/DensifyPointCloud" TARGETS_CMAKE "${TARGETS_CMAKE}")
|
|
|
|
string(REPLACE "bin/ReconstructMesh" "tools/openmvs/ReconstructMesh" TARGETS_CMAKE "${TARGETS_CMAKE}")
|
|
|
|
string(REPLACE "bin/RefineMesh" "tools/openmvs/RefineMesh" TARGETS_CMAKE "${TARGETS_CMAKE}")
|
|
|
|
string(REPLACE "bin/TextureMesh" "tools/openmvs/TextureMesh" TARGETS_CMAKE "${TARGETS_CMAKE}")
|
|
|
|
string(REPLACE "bin/Viewer" "tools/openmvs/Viewer" TARGETS_CMAKE "${TARGETS_CMAKE}")
|
|
|
|
file(WRITE ${CURRENT_PACKAGES_DIR}/share/openmvs/OpenMVSTargets-release.cmake "${TARGETS_CMAKE}")
|
|
|
|
|
|
|
|
vcpkg_copy_tools(AUTO_CLEAN TOOL_NAMES
|
|
|
|
DensifyPointCloud
|
|
|
|
InterfaceCOLMAP
|
|
|
|
InterfaceVisualSFM
|
|
|
|
ReconstructMesh
|
|
|
|
RefineMesh
|
|
|
|
TextureMesh
|
|
|
|
Viewer
|
|
|
|
)
|
2019-05-17 17:38:01 +02:00
|
|
|
|
2020-08-28 07:13:05 +02:00
|
|
|
set(OPENMVG_TOOLS_PATH "${CURRENT_INSTALLED_DIR}/tools/openmvg")
|
|
|
|
set(OPENMVS_TOOLS_PATH "${CURRENT_INSTALLED_DIR}/tools/${PORT}")
|
|
|
|
set(SENSOR_WIDTH_CAMERA_DATABASE_TXT_PATH "${OPENMVG_TOOLS_PATH}/sensor_width_camera_database.txt")
|
|
|
|
configure_file("${SOURCE_PATH}/MvgMvsPipeline.py.in" "${CURRENT_PACKAGES_DIR}/tools/${PORT}/MvgMvsPipeline.py" @ONLY)
|
|
|
|
file(INSTALL "${SOURCE_PATH}/build/Modules/FindVCG.cmake" DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
2019-05-17 17:38:01 +02:00
|
|
|
|
2020-03-04 10:15:30 -08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|