2018-03-08 06:16:07 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO skypjack/entt
|
2020-04-03 02:21:11 +08:00
|
|
|
REF v3.3.2
|
|
|
|
SHA512 4c4b49ed6057c8e0f779a0972d1a1633a9c7f110fbfe9feb3496f7825f10f8f9ab57c76a0a8a4172f31c450489733798ac1fb4e5b9660fac6c39dfc3b16feba4
|
2018-11-08 15:49:02 +08:00
|
|
|
HEAD_REF master
|
2018-03-08 06:16:07 +08:00
|
|
|
)
|
|
|
|
|
2018-11-08 15:49:02 +08:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2019-06-04 17:23:04 +08:00
|
|
|
DISABLE_PARALLEL_CONFIGURE
|
2018-11-08 15:49:02 +08:00
|
|
|
PREFER_NINJA
|
|
|
|
OPTIONS
|
|
|
|
-DBUILD_TESTING=OFF
|
2018-03-08 06:16:07 +08:00
|
|
|
)
|
|
|
|
|
2018-11-08 15:49:02 +08:00
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
|
|
|
if(EXISTS ${CURRENT_PACKAGES_DIR}/cmake)
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH cmake)
|
|
|
|
else()
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/entt)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib)
|
|
|
|
|
|
|
|
# Handle copyright
|
2018-03-08 06:16:07 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/entt RENAME copyright)
|