vcpkg/ports/colmap/portfile.cmake

92 lines
2.7 KiB
CMake
Raw Normal View History

set(COLMAP_REF "e99036415ec0cf0f75c1d0b8d60fdd91af0d6c68") # v3.9.1
[colmap] Add port for COLMAP 3.6 (#12410) * [colmap] Add port for COLMAP 3.6-dev.3 * Fixed some errors in portfile * Fixing some errors in portfile. These changes also move the binary (and *.bat) to `tools/` otherwise I get `POST_BUILD_CHECKS_FAILED`. I followed this recommendation: https://github.com/Microsoft/vcpkg/issues/834#issuecomment-288529839 Now the *.bat files need to be fixed with the correct path to `tools/` * Update ports/colmap/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/colmap/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/colmap/usage Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * First working version, the line `vcpkg_copy_tools(TOOL_NAMES colmap AUTO_CLEAN)` helped. Now it does work running: > <vcpkg-root>\vcpkg\packages\colmap_x64-windows\tools\colmap\colmap.exe > <vcpkg-root>\vcpkg\packages\colmap_x64-windows\tools\colmap\colmap.exe gui ToDo: use `vcpkg.json`. * Using `vcpkg.json` instead of CONTROL file * Formatting json file: ./vcpkg.exe x-format-manifest --all * Changes suggested by @ahojnnes (colmap author). Waiting for the 3.7 release (probably today) to update the `REF` and `SHA512` * Changes proposed from @ahojnne to handle the internal colmap variables `DGIT_COMMIT_ID` and `DGIT_COMMIT_DATE` * Enabling TESTS (changes sent by @ahojnnes) * Updated to lastest tag to 3.6 * Updating to 3.6 * Ceres was missing suitesparse/lapack * Update ports/colmap/portfile.cmake (commit suggested by JackBoosY) Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> * format manifest * Update ports/colmap/portfile.cmake Co-authored-by: nicole mazzuca <mazzucan@outlook.com> Co-authored-by: Robert Schumacher <roschuma@microsoft.com> Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com> Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
2020-08-07 13:15:45 +08:00
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO colmap/colmap
REF "${VERSION}"
SHA512 8af849f99e7f7bd024d8aaa0c66ae9192fd1a6f63869b96d77300e5203ac510f5359456567a786e29b14cbd1d580d1e3305194c3db8fd6ce10c1d592f988294c
HEAD_REF main
PATCHES
fix-link-glog.patch
[colmap] Add port for COLMAP 3.6 (#12410) * [colmap] Add port for COLMAP 3.6-dev.3 * Fixed some errors in portfile * Fixing some errors in portfile. These changes also move the binary (and *.bat) to `tools/` otherwise I get `POST_BUILD_CHECKS_FAILED`. I followed this recommendation: https://github.com/Microsoft/vcpkg/issues/834#issuecomment-288529839 Now the *.bat files need to be fixed with the correct path to `tools/` * Update ports/colmap/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/colmap/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/colmap/usage Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * First working version, the line `vcpkg_copy_tools(TOOL_NAMES colmap AUTO_CLEAN)` helped. Now it does work running: > <vcpkg-root>\vcpkg\packages\colmap_x64-windows\tools\colmap\colmap.exe > <vcpkg-root>\vcpkg\packages\colmap_x64-windows\tools\colmap\colmap.exe gui ToDo: use `vcpkg.json`. * Using `vcpkg.json` instead of CONTROL file * Formatting json file: ./vcpkg.exe x-format-manifest --all * Changes suggested by @ahojnnes (colmap author). Waiting for the 3.7 release (probably today) to update the `REF` and `SHA512` * Changes proposed from @ahojnne to handle the internal colmap variables `DGIT_COMMIT_ID` and `DGIT_COMMIT_DATE` * Enabling TESTS (changes sent by @ahojnnes) * Updated to lastest tag to 3.6 * Updating to 3.6 * Ceres was missing suitesparse/lapack * Update ports/colmap/portfile.cmake (commit suggested by JackBoosY) Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> * format manifest * Update ports/colmap/portfile.cmake Co-authored-by: nicole mazzuca <mazzucan@outlook.com> Co-authored-by: Robert Schumacher <roschuma@microsoft.com> Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com> Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
2020-08-07 13:15:45 +08:00
)
if (NOT TRIPLET_SYSTEM_ARCH STREQUAL "x64" AND ("cuda" IN_LIST FEATURES OR "cuda-redist" IN_LIST FEATURES))
message(FATAL_ERROR "Feature cuda and cuda-redist require x64 triplet.")
endif()
# set GIT_COMMIT_ID and GIT_COMMIT_DATE
if(DEFINED VCPKG_HEAD_VERSION)
set(GIT_COMMIT_ID "${VCPKG_HEAD_VERSION}")
else()
set(GIT_COMMIT_ID "${COLMAP_REF}")
endif()
string(TIMESTAMP COLMAP_GIT_COMMIT_DATE "%Y-%m-%d")
set(CUDA_ENABLED OFF)
set(TESTS_ENABLED OFF)
if("cuda" IN_LIST FEATURES)
set(CUDA_ENABLED ON)
set(CUDA_ARCHITECTURES "native")
[colmap] Add port for COLMAP 3.6 (#12410) * [colmap] Add port for COLMAP 3.6-dev.3 * Fixed some errors in portfile * Fixing some errors in portfile. These changes also move the binary (and *.bat) to `tools/` otherwise I get `POST_BUILD_CHECKS_FAILED`. I followed this recommendation: https://github.com/Microsoft/vcpkg/issues/834#issuecomment-288529839 Now the *.bat files need to be fixed with the correct path to `tools/` * Update ports/colmap/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/colmap/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/colmap/usage Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * First working version, the line `vcpkg_copy_tools(TOOL_NAMES colmap AUTO_CLEAN)` helped. Now it does work running: > <vcpkg-root>\vcpkg\packages\colmap_x64-windows\tools\colmap\colmap.exe > <vcpkg-root>\vcpkg\packages\colmap_x64-windows\tools\colmap\colmap.exe gui ToDo: use `vcpkg.json`. * Using `vcpkg.json` instead of CONTROL file * Formatting json file: ./vcpkg.exe x-format-manifest --all * Changes suggested by @ahojnnes (colmap author). Waiting for the 3.7 release (probably today) to update the `REF` and `SHA512` * Changes proposed from @ahojnne to handle the internal colmap variables `DGIT_COMMIT_ID` and `DGIT_COMMIT_DATE` * Enabling TESTS (changes sent by @ahojnnes) * Updated to lastest tag to 3.6 * Updating to 3.6 * Ceres was missing suitesparse/lapack * Update ports/colmap/portfile.cmake (commit suggested by JackBoosY) Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> * format manifest * Update ports/colmap/portfile.cmake Co-authored-by: nicole mazzuca <mazzucan@outlook.com> Co-authored-by: Robert Schumacher <roschuma@microsoft.com> Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com> Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
2020-08-07 13:15:45 +08:00
endif()
if("cuda-redist" IN_LIST FEATURES)
set(CUDA_ENABLED ON)
set(CUDA_ARCHITECTURES "all-major")
[colmap] Add port for COLMAP 3.6 (#12410) * [colmap] Add port for COLMAP 3.6-dev.3 * Fixed some errors in portfile * Fixing some errors in portfile. These changes also move the binary (and *.bat) to `tools/` otherwise I get `POST_BUILD_CHECKS_FAILED`. I followed this recommendation: https://github.com/Microsoft/vcpkg/issues/834#issuecomment-288529839 Now the *.bat files need to be fixed with the correct path to `tools/` * Update ports/colmap/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/colmap/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/colmap/usage Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * First working version, the line `vcpkg_copy_tools(TOOL_NAMES colmap AUTO_CLEAN)` helped. Now it does work running: > <vcpkg-root>\vcpkg\packages\colmap_x64-windows\tools\colmap\colmap.exe > <vcpkg-root>\vcpkg\packages\colmap_x64-windows\tools\colmap\colmap.exe gui ToDo: use `vcpkg.json`. * Using `vcpkg.json` instead of CONTROL file * Formatting json file: ./vcpkg.exe x-format-manifest --all * Changes suggested by @ahojnnes (colmap author). Waiting for the 3.7 release (probably today) to update the `REF` and `SHA512` * Changes proposed from @ahojnne to handle the internal colmap variables `DGIT_COMMIT_ID` and `DGIT_COMMIT_DATE` * Enabling TESTS (changes sent by @ahojnnes) * Updated to lastest tag to 3.6 * Updating to 3.6 * Ceres was missing suitesparse/lapack * Update ports/colmap/portfile.cmake (commit suggested by JackBoosY) Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> * format manifest * Update ports/colmap/portfile.cmake Co-authored-by: nicole mazzuca <mazzucan@outlook.com> Co-authored-by: Robert Schumacher <roschuma@microsoft.com> Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com> Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
2020-08-07 13:15:45 +08:00
endif()
if("tests" IN_LIST FEATURES)
set(TESTS_ENABLED ON)
endif()
2022-10-06 06:02:27 +08:00
set(OPENMP_ENABLED ON)
if (VCPKG_TARGET_IS_OSX AND VCPKG_TARGET_ARCHITECTURE MATCHES "arm")
set(OPENMP_ENABLED Off)
endif()
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
DISABLE_PARALLEL_CONFIGURE
[colmap] Add port for COLMAP 3.6 (#12410) * [colmap] Add port for COLMAP 3.6-dev.3 * Fixed some errors in portfile * Fixing some errors in portfile. These changes also move the binary (and *.bat) to `tools/` otherwise I get `POST_BUILD_CHECKS_FAILED`. I followed this recommendation: https://github.com/Microsoft/vcpkg/issues/834#issuecomment-288529839 Now the *.bat files need to be fixed with the correct path to `tools/` * Update ports/colmap/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/colmap/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/colmap/usage Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * First working version, the line `vcpkg_copy_tools(TOOL_NAMES colmap AUTO_CLEAN)` helped. Now it does work running: > <vcpkg-root>\vcpkg\packages\colmap_x64-windows\tools\colmap\colmap.exe > <vcpkg-root>\vcpkg\packages\colmap_x64-windows\tools\colmap\colmap.exe gui ToDo: use `vcpkg.json`. * Using `vcpkg.json` instead of CONTROL file * Formatting json file: ./vcpkg.exe x-format-manifest --all * Changes suggested by @ahojnnes (colmap author). Waiting for the 3.7 release (probably today) to update the `REF` and `SHA512` * Changes proposed from @ahojnne to handle the internal colmap variables `DGIT_COMMIT_ID` and `DGIT_COMMIT_DATE` * Enabling TESTS (changes sent by @ahojnnes) * Updated to lastest tag to 3.6 * Updating to 3.6 * Ceres was missing suitesparse/lapack * Update ports/colmap/portfile.cmake (commit suggested by JackBoosY) Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> * format manifest * Update ports/colmap/portfile.cmake Co-authored-by: nicole mazzuca <mazzucan@outlook.com> Co-authored-by: Robert Schumacher <roschuma@microsoft.com> Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com> Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
2020-08-07 13:15:45 +08:00
OPTIONS
-DCUDA_ENABLED=${CUDA_ENABLED}
-DCMAKE_CUDA_ARCHITECTURES=${CUDA_ARCHITECTURES}
[colmap] Add port for COLMAP 3.6 (#12410) * [colmap] Add port for COLMAP 3.6-dev.3 * Fixed some errors in portfile * Fixing some errors in portfile. These changes also move the binary (and *.bat) to `tools/` otherwise I get `POST_BUILD_CHECKS_FAILED`. I followed this recommendation: https://github.com/Microsoft/vcpkg/issues/834#issuecomment-288529839 Now the *.bat files need to be fixed with the correct path to `tools/` * Update ports/colmap/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/colmap/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/colmap/usage Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * First working version, the line `vcpkg_copy_tools(TOOL_NAMES colmap AUTO_CLEAN)` helped. Now it does work running: > <vcpkg-root>\vcpkg\packages\colmap_x64-windows\tools\colmap\colmap.exe > <vcpkg-root>\vcpkg\packages\colmap_x64-windows\tools\colmap\colmap.exe gui ToDo: use `vcpkg.json`. * Using `vcpkg.json` instead of CONTROL file * Formatting json file: ./vcpkg.exe x-format-manifest --all * Changes suggested by @ahojnnes (colmap author). Waiting for the 3.7 release (probably today) to update the `REF` and `SHA512` * Changes proposed from @ahojnne to handle the internal colmap variables `DGIT_COMMIT_ID` and `DGIT_COMMIT_DATE` * Enabling TESTS (changes sent by @ahojnnes) * Updated to lastest tag to 3.6 * Updating to 3.6 * Ceres was missing suitesparse/lapack * Update ports/colmap/portfile.cmake (commit suggested by JackBoosY) Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> * format manifest * Update ports/colmap/portfile.cmake Co-authored-by: nicole mazzuca <mazzucan@outlook.com> Co-authored-by: Robert Schumacher <roschuma@microsoft.com> Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com> Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
2020-08-07 13:15:45 +08:00
-DTESTS_ENABLED=${TESTS_ENABLED}
-DGIT_COMMIT_ID=${GIT_COMMIT_ID}
-DGIT_COMMIT_DATE=${COLMAP_GIT_COMMIT_DATE}
2022-10-06 06:02:27 +08:00
-DOPENMP_ENABLED=${OPENMP_ENABLED}
[colmap] Add port for COLMAP 3.6 (#12410) * [colmap] Add port for COLMAP 3.6-dev.3 * Fixed some errors in portfile * Fixing some errors in portfile. These changes also move the binary (and *.bat) to `tools/` otherwise I get `POST_BUILD_CHECKS_FAILED`. I followed this recommendation: https://github.com/Microsoft/vcpkg/issues/834#issuecomment-288529839 Now the *.bat files need to be fixed with the correct path to `tools/` * Update ports/colmap/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/colmap/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/colmap/usage Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * First working version, the line `vcpkg_copy_tools(TOOL_NAMES colmap AUTO_CLEAN)` helped. Now it does work running: > <vcpkg-root>\vcpkg\packages\colmap_x64-windows\tools\colmap\colmap.exe > <vcpkg-root>\vcpkg\packages\colmap_x64-windows\tools\colmap\colmap.exe gui ToDo: use `vcpkg.json`. * Using `vcpkg.json` instead of CONTROL file * Formatting json file: ./vcpkg.exe x-format-manifest --all * Changes suggested by @ahojnnes (colmap author). Waiting for the 3.7 release (probably today) to update the `REF` and `SHA512` * Changes proposed from @ahojnne to handle the internal colmap variables `DGIT_COMMIT_ID` and `DGIT_COMMIT_DATE` * Enabling TESTS (changes sent by @ahojnnes) * Updated to lastest tag to 3.6 * Updating to 3.6 * Ceres was missing suitesparse/lapack * Update ports/colmap/portfile.cmake (commit suggested by JackBoosY) Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> * format manifest * Update ports/colmap/portfile.cmake Co-authored-by: nicole mazzuca <mazzucan@outlook.com> Co-authored-by: Robert Schumacher <roschuma@microsoft.com> Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com> Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
2020-08-07 13:15:45 +08:00
)
vcpkg_cmake_install()
[colmap] Add port for COLMAP 3.6 (#12410) * [colmap] Add port for COLMAP 3.6-dev.3 * Fixed some errors in portfile * Fixing some errors in portfile. These changes also move the binary (and *.bat) to `tools/` otherwise I get `POST_BUILD_CHECKS_FAILED`. I followed this recommendation: https://github.com/Microsoft/vcpkg/issues/834#issuecomment-288529839 Now the *.bat files need to be fixed with the correct path to `tools/` * Update ports/colmap/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/colmap/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/colmap/usage Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * First working version, the line `vcpkg_copy_tools(TOOL_NAMES colmap AUTO_CLEAN)` helped. Now it does work running: > <vcpkg-root>\vcpkg\packages\colmap_x64-windows\tools\colmap\colmap.exe > <vcpkg-root>\vcpkg\packages\colmap_x64-windows\tools\colmap\colmap.exe gui ToDo: use `vcpkg.json`. * Using `vcpkg.json` instead of CONTROL file * Formatting json file: ./vcpkg.exe x-format-manifest --all * Changes suggested by @ahojnnes (colmap author). Waiting for the 3.7 release (probably today) to update the `REF` and `SHA512` * Changes proposed from @ahojnne to handle the internal colmap variables `DGIT_COMMIT_ID` and `DGIT_COMMIT_DATE` * Enabling TESTS (changes sent by @ahojnnes) * Updated to lastest tag to 3.6 * Updating to 3.6 * Ceres was missing suitesparse/lapack * Update ports/colmap/portfile.cmake (commit suggested by JackBoosY) Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> * format manifest * Update ports/colmap/portfile.cmake Co-authored-by: nicole mazzuca <mazzucan@outlook.com> Co-authored-by: Robert Schumacher <roschuma@microsoft.com> Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com> Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
2020-08-07 13:15:45 +08:00
vcpkg_cmake_config_fixup()
[colmap] Add port for COLMAP 3.6 (#12410) * [colmap] Add port for COLMAP 3.6-dev.3 * Fixed some errors in portfile * Fixing some errors in portfile. These changes also move the binary (and *.bat) to `tools/` otherwise I get `POST_BUILD_CHECKS_FAILED`. I followed this recommendation: https://github.com/Microsoft/vcpkg/issues/834#issuecomment-288529839 Now the *.bat files need to be fixed with the correct path to `tools/` * Update ports/colmap/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/colmap/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/colmap/usage Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * First working version, the line `vcpkg_copy_tools(TOOL_NAMES colmap AUTO_CLEAN)` helped. Now it does work running: > <vcpkg-root>\vcpkg\packages\colmap_x64-windows\tools\colmap\colmap.exe > <vcpkg-root>\vcpkg\packages\colmap_x64-windows\tools\colmap\colmap.exe gui ToDo: use `vcpkg.json`. * Using `vcpkg.json` instead of CONTROL file * Formatting json file: ./vcpkg.exe x-format-manifest --all * Changes suggested by @ahojnnes (colmap author). Waiting for the 3.7 release (probably today) to update the `REF` and `SHA512` * Changes proposed from @ahojnne to handle the internal colmap variables `DGIT_COMMIT_ID` and `DGIT_COMMIT_DATE` * Enabling TESTS (changes sent by @ahojnnes) * Updated to lastest tag to 3.6 * Updating to 3.6 * Ceres was missing suitesparse/lapack * Update ports/colmap/portfile.cmake (commit suggested by JackBoosY) Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> * format manifest * Update ports/colmap/portfile.cmake Co-authored-by: nicole mazzuca <mazzucan@outlook.com> Co-authored-by: Robert Schumacher <roschuma@microsoft.com> Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com> Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
2020-08-07 13:15:45 +08:00
file(GLOB TOOL_FILENAMES "${CURRENT_PACKAGES_DIR}/bin/*")
foreach(TOOL_FILENAME ${TOOL_FILENAMES})
get_filename_component(TEST_TOOL_NAME ${TOOL_FILENAME} NAME_WLE)
list(APPEND COLMAP_TOOL_NAMES "${TEST_TOOL_NAME}")
endforeach()
vcpkg_copy_tools(TOOL_NAMES ${COLMAP_TOOL_NAMES} AUTO_CLEAN)
# remove empty folders and unused files
file(REMOVE_RECURSE
"${CURRENT_PACKAGES_DIR}/debug/include"
"${CURRENT_PACKAGES_DIR}/debug/share"
"${CURRENT_PACKAGES_DIR}/include/colmap/exe"
"${CURRENT_PACKAGES_DIR}/include/colmap/tools"
"${CURRENT_PACKAGES_DIR}/include/colmap/ui/media"
"${CURRENT_PACKAGES_DIR}/include/colmap/ui/shaders"
"${CURRENT_PACKAGES_DIR}/COLMAP.bat"
"${CURRENT_PACKAGES_DIR}/RUN_TESTS.bat"
"${CURRENT_PACKAGES_DIR}/debug/COLMAP.bat"
"${CURRENT_PACKAGES_DIR}/debug/RUN_TESTS.bat"
"${CURRENT_PACKAGES_DIR}/debug/bin"
[colmap] Add port for COLMAP 3.6 (#12410) * [colmap] Add port for COLMAP 3.6-dev.3 * Fixed some errors in portfile * Fixing some errors in portfile. These changes also move the binary (and *.bat) to `tools/` otherwise I get `POST_BUILD_CHECKS_FAILED`. I followed this recommendation: https://github.com/Microsoft/vcpkg/issues/834#issuecomment-288529839 Now the *.bat files need to be fixed with the correct path to `tools/` * Update ports/colmap/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/colmap/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/colmap/usage Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * First working version, the line `vcpkg_copy_tools(TOOL_NAMES colmap AUTO_CLEAN)` helped. Now it does work running: > <vcpkg-root>\vcpkg\packages\colmap_x64-windows\tools\colmap\colmap.exe > <vcpkg-root>\vcpkg\packages\colmap_x64-windows\tools\colmap\colmap.exe gui ToDo: use `vcpkg.json`. * Using `vcpkg.json` instead of CONTROL file * Formatting json file: ./vcpkg.exe x-format-manifest --all * Changes suggested by @ahojnnes (colmap author). Waiting for the 3.7 release (probably today) to update the `REF` and `SHA512` * Changes proposed from @ahojnne to handle the internal colmap variables `DGIT_COMMIT_ID` and `DGIT_COMMIT_DATE` * Enabling TESTS (changes sent by @ahojnnes) * Updated to lastest tag to 3.6 * Updating to 3.6 * Ceres was missing suitesparse/lapack * Update ports/colmap/portfile.cmake (commit suggested by JackBoosY) Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> * format manifest * Update ports/colmap/portfile.cmake Co-authored-by: nicole mazzuca <mazzucan@outlook.com> Co-authored-by: Robert Schumacher <roschuma@microsoft.com> Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com> Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
2020-08-07 13:15:45 +08:00
)
vcpkg_copy_pdbs()
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING.txt")
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")