mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-13 05:59:01 +08:00
94b089b7c1
* Update to 3.1.5 * Add feature 'tools' * ilmbase is now imath * [theia] Use openimageio cmake config * [freeimage] Use OpenEXR 3 and Imath * [opencv4] Use upstream's OpenEXR 3 support * [opencv3] Use upstream's OpenEXR 3 support * [opencv2] Use OpenEXR 3 and Imath * [osg] Use OpenEXR 3 * [openvdb] Use Imath, enable OpenEXR * [pangolin] Use OpenEXR 3 * [directxtex] Use OpenEXR 3 * [uvatlas] Disable /guard:ehcont when directxtex uses openexr * Update versions Co-authored-by: chausner <chausner@users.noreply.github.com>
49 lines
1.8 KiB
CMake
49 lines
1.8 KiB
CMake
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO sweeneychris/TheiaSfM
|
|
REF v0.8
|
|
SHA512 2f620389c415badec36f4b44be0378fc62761dd6b2ee4cd7033b13573c372f098e248553575fb2cceb757b1ca00e86a11c67e03b6077e0a4b0f8797065746312
|
|
HEAD_REF master
|
|
PATCHES
|
|
fix-external-dependencies.patch
|
|
fix-external-dependencies2.patch
|
|
eigen-3.4.patch
|
|
)
|
|
|
|
file(REMOVE ${SOURCE_PATH}/cmake/FindSuiteSparse.cmake)
|
|
file(REMOVE ${SOURCE_PATH}/cmake/FindOpenImageIO.cmake)
|
|
file(REMOVE ${SOURCE_PATH}/cmake/FindGflags.cmake)
|
|
file(REMOVE ${SOURCE_PATH}/cmake/FindGlog.cmake)
|
|
file(REMOVE ${SOURCE_PATH}/cmake/FindEigen.cmake)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
OPTIONS
|
|
-DCMAKE_CXX_STANDARD=14
|
|
-DCMAKE_CXX_EXTENSIONS=OFF
|
|
-DCMAKE_CXX_STANDARD_REQUIRED=ON
|
|
-DBUILD_TESTING=OFF
|
|
-DTHEIA_USE_EXTERNAL_CEREAL=ON
|
|
-DTHEIA_USE_EXTERNAL_FLANN=ON
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_cmake_config_fixup()
|
|
vcpkg_copy_pdbs()
|
|
|
|
# Clean
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/optimo)
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/optimo)
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/include/theia/libraries/akaze/cimg/cmake-modules)
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/include/theia/libraries/akaze/cmake)
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/include/theia/libraries/akaze/datasets)
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/include/theia/libraries/spectra/doxygen)
|
|
|
|
# Handle copyright
|
|
file(INSTALL ${SOURCE_PATH}/license.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
|
file(COPY ${SOURCE_PATH}/data/camera_sensor_database_license.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|