2019-07-19 05:00:25 +08:00
|
|
|
if (VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
|
|
|
message(FATAL_ERROR "${PORT} doesn't currently support UWP.")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO LAStools/LAStools
|
2023-02-24 03:19:45 +08:00
|
|
|
REF 2bbbfa918df01b7f364d176610e9785bceb4d5de
|
|
|
|
SHA512 3744aa9e50150261cc3a52272a4cdeafdb4f678a6f6a986a9549c2efead6b4c69bc3d9a6f9f302140ce363d6da965e47b63c0310364307e9caa82c86f75a509f
|
2019-07-19 05:00:25 +08:00
|
|
|
HEAD_REF master
|
2020-06-12 13:04:14 +08:00
|
|
|
PATCHES
|
|
|
|
"fix_install_paths_lastools.patch"
|
2023-02-24 03:19:45 +08:00
|
|
|
"fix_include_directories_lastools.patch"
|
2019-07-19 05:00:25 +08:00
|
|
|
)
|
|
|
|
|
2023-02-24 03:19:45 +08:00
|
|
|
vcpkg_cmake_configure(
|
2023-03-21 03:16:03 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-07-19 05:00:25 +08:00
|
|
|
)
|
|
|
|
|
2023-02-24 03:19:45 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
|
2023-03-21 03:16:03 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME LASlib CONFIG_PATH share/lastools/LASlib)
|
2019-07-19 05:00:25 +08:00
|
|
|
|
2023-03-21 03:16:03 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2019-07-19 05:00:25 +08:00
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
2023-03-21 03:16:03 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
2019-07-19 05:00:25 +08:00
|
|
|
endif()
|
2020-06-12 13:04:14 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
2019-07-19 05:00:25 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2023-03-21 03:16:03 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
|