2023-08-04 21:48:37 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO skypjack/entt
|
|
|
|
REF "v${VERSION}"
|
2024-10-29 14:49:23 +08:00
|
|
|
SHA512 153cd353aa211a93c8f2f8650d55a0fd2ea9abb836386ef827285b6ab96ad680e92cac65c4b23db50c7882078d599200ac6a9eb3326a2a33160e62fc624202c7
|
2023-08-04 21:48:37 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
|
|
|
set(VCPKG_BUILD_TYPE release) # header-only port
|
2018-03-08 06:16:07 +08:00
|
|
|
|
2021-12-22 12:20:36 +08:00
|
|
|
vcpkg_cmake_configure(
|
2022-05-14 07:52:53 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2018-11-08 15:49:02 +08:00
|
|
|
OPTIONS
|
2021-01-12 13:01:09 +08:00
|
|
|
-DENTT_BUILD_TESTING=OFF
|
2018-03-08 06:16:07 +08:00
|
|
|
)
|
|
|
|
|
2021-12-22 12:20:36 +08:00
|
|
|
vcpkg_cmake_install()
|
2023-08-04 21:48:37 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/EnTT/cmake)
|
2018-11-08 15:49:02 +08:00
|
|
|
|
2023-08-04 21:48:37 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
2022-05-14 07:52:53 +08:00
|
|
|
|
|
|
|
# Install natvis files
|
|
|
|
file(INSTALL "${SOURCE_PATH}/natvis/entt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}/natvis")
|
2018-11-08 15:49:02 +08:00
|
|
|
|
2023-01-31 09:02:34 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
2023-08-04 21:48:37 +08:00
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|