vcpkg/ports/pdal-dimbuilder/portfile.cmake

33 lines
1.0 KiB
CMake
Raw Normal View History

2024-11-05 21:26:48 +01:00
# 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")