vcpkg/ports/lastools/portfile.cmake

38 lines
1.2 KiB
CMake
Raw Normal View History

2019-07-19 05:00:25 +08:00
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO LAStools/LAStools
2024-08-14 06:34:02 +08:00
REF "v${VERSION}"
SHA512 cb150562b09c5a79df1e2c730481ceda340f235e1efb7824564d1f95a9981eada087af06bc3907a777a55d315a1521fb8a09249f2aeefd9e40e6c783b9c7a11c
2019-07-19 05:00:25 +08:00
HEAD_REF master
PATCHES
2024-08-14 06:34:02 +08:00
fix_install_paths_lastools.patch
fix_include_directories_lastools.patch
build-tools.diff
insecure-fprintf.diff
signed-char.diff
)
vcpkg_check_features(OUT_FEATURE_OPTIONS options
FEATURES
tools BUILD_TOOLS
2019-07-19 05:00:25 +08:00
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
2024-08-14 06:34:02 +08:00
OPTIONS
${options}
OPTIONS_DEBUG
-DBUILD_TOOLS=OFF
2019-07-19 05:00:25 +08:00
)
vcpkg_cmake_install()
2024-08-14 06:34:02 +08:00
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/LASlib PACKAGE_NAME laslib)
2024-08-14 06:34:02 +08:00
if(BUILD_TOOLS)
vcpkg_copy_tools(TOOL_NAMES las2las64 las2txt64 lascopcindex64 lasdiff64 lasindex64 lasinfo64 lasmerge64 lasprecision64 laszip64 txt2las64 AUTO_CLEAN)
endif()
2019-07-19 05:00:25 +08:00
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
2019-07-19 05:00:25 +08:00
2024-08-14 06:34:02 +08:00
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt" "${SOURCE_PATH}/COPYING.txt")