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
|
2020-03-28 10:41:44 +08:00
|
|
|
REF v3.0.0
|
|
|
|
SHA512 659c903c0c4a4ee4179d01950a952fe0c40d2c426063c10515ae5d2ad13ec8ca6b83d8de50c9eb86dd3c2c3747e1594d832f0c28cd6d414703baf9a7ab2f1f36
|
2018-10-09 15:43:02 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2020-03-28 10:41:44 +08:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
DISABLE_PARALLEL_CONFIGURE
|
|
|
|
PREFER_NINJA
|
|
|
|
OPTIONS
|
|
|
|
-DBUILD_TESTING=OFF
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH share/morton-nd/cmake TARGET_PATH)
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE
|
|
|
|
${CURRENT_PACKAGES_DIR}/debug
|
|
|
|
${CURRENT_PACKAGES_DIR}/share/doc
|
|
|
|
)
|
2018-10-09 15:43:02 +08:00
|
|
|
|
2020-03-28 10:41:44 +08:00
|
|
|
# Handle copyright
|
|
|
|
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|
|
|
|
file(COPY ${SOURCE_PATH}/NOTICE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|