2018-08-02 01:40:32 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO LASzip/LASzip
|
2020-10-29 05:18:07 +08:00
|
|
|
REF 1ab671e42ff1f086e29d5b7e300a5026e7b8d69b # 3.4.3
|
2020-02-11 08:08:57 +08:00
|
|
|
SHA512 7ec20d6999b16e6a74a64d1dc3e9f1b1b4510acd306d30ccae34a543ca0dc52e1d1d989279fafdda321616ba1e0ceb59a093d8c61ba5a586b760efa0d00a0184
|
2018-08-02 01:40:32 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" LASZIP_BUILD_STATIC)
|
|
|
|
|
2021-07-23 12:58:32 +08:00
|
|
|
vcpkg_cmake_configure(
|
2018-08-02 01:40:32 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
OPTIONS
|
|
|
|
-DLASZIP_BUILD_STATIC=${LASZIP_BUILD_STATIC}
|
|
|
|
)
|
|
|
|
|
2021-07-23 12:58:32 +08:00
|
|
|
vcpkg_cmake_install()
|
2018-08-02 01:40:32 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2021-07-23 12:58:32 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/laszip" RENAME copyright)
|
2018-08-02 01:40:32 +08:00
|
|
|
|
2021-07-23 12:58:32 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2018-08-02 01:40:32 +08:00
|
|
|
# Remove laszip_api3 dll since it doesn't export functions properly during build.
|
2021-07-23 12:58:32 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin/laszip_api3.dll")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin/laszip_api3.dll")
|