2018-10-09 15:43:02 +08:00
|
|
|
#header-only library
|
2020-03-28 10:41:44 +08:00
|
|
|
|
2018-10-09 15:43:02 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO kevinhartman/morton-nd
|
2021-07-01 22:39:09 +08:00
|
|
|
REF v4.0.0
|
|
|
|
SHA512 19dc51ae5d7fc868625a9c9f0dddec95a77fdeac714300033008f096bc3a83f146738e525e8a0ec541903263355a7fec84b1873d8eacfca4b93d3cd8945653da
|
|
|
|
HEAD_REF main
|
2018-10-09 15:43:02 +08:00
|
|
|
)
|
|
|
|
|
2023-03-02 02:39:14 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-03-28 10:41:44 +08:00
|
|
|
DISABLE_PARALLEL_CONFIGURE
|
|
|
|
OPTIONS
|
|
|
|
-DBUILD_TESTING=OFF
|
|
|
|
)
|
|
|
|
|
2023-03-02 02:39:14 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_copy_pdbs()
|
2020-03-28 10:41:44 +08:00
|
|
|
|
2023-03-02 02:39:14 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH share/morton-nd/cmake)
|
2020-03-28 10:41:44 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE
|
2023-03-02 02:39:14 +08:00
|
|
|
"${CURRENT_PACKAGES_DIR}/debug"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/share/doc"
|
2020-03-28 10:41:44 +08:00
|
|
|
)
|
2018-10-09 15:43:02 +08:00
|
|
|
|
2020-03-28 10:41:44 +08:00
|
|
|
# Handle copyright
|
2023-03-02 02:39:14 +08:00
|
|
|
configure_file("${SOURCE_PATH}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
|
|
|
|
file(COPY "${SOURCE_PATH}/NOTICE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|