mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-03 09:12:21 +08:00
33 lines
1.0 KiB
CMake
33 lines
1.0 KiB
CMake
# Host tool needed by pdal. No bells and whistles.
|
|
set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
|
|
set(VCPKG_BUILD_TYPE release)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO PDAL/PDAL
|
|
REF "${VERSION}"
|
|
#[[
|
|
Attention: pdal must be updated together with pdal-dimbuilder
|
|
#]]
|
|
SHA512 1f9c4383fdbd4e10ef0b30b7148386692f8bd5f19b57a0323d92f2dc55a14fbc6a0d4d60c16c9604cbd3837c0ae8e3c88baebdefd534273952f92f01c5703554
|
|
HEAD_REF master
|
|
PATCHES
|
|
namespace-nl.diff
|
|
)
|
|
file(REMOVE_RECURSE "${SOURCE_PATH}/vendor")
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}/dimbuilder"
|
|
OPTIONS
|
|
"-DNLOHMANN_INCLUDE_DIR=${CURRENT_INSTALLED_DIR}/include"
|
|
"-DUTFCPP_INCLUDE_DIR=${CURRENT_INSTALLED_DIR}/include/utf8cpp"
|
|
)
|
|
vcpkg_cmake_build()
|
|
|
|
vcpkg_copy_tools(TOOL_NAMES dimbuilder
|
|
SEARCH_DIR "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel"
|
|
DESTINATION "${CURRENT_PACKAGES_DIR}/manual-tools/${PORT}"
|
|
)
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
|