2018-10-21 05:11:58 +08:00
|
|
|
include(vcpkg_common_functions)
|
2017-06-10 10:34:07 +08:00
|
|
|
|
2018-10-21 05:11:58 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2016-11-29 19:42:34 +08:00
|
|
|
|
2018-10-21 05:11:58 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO alecthomas/entityx
|
|
|
|
REF 1.2.0
|
|
|
|
SHA512 682aa302cb4495666aab2c0b39a286f88cb28046bc8b2deb603402105e15e4b9692e32807077abc3f465e42a4e0f34a7e69169bc74fc5579a5c3d0e17b02fdb8
|
|
|
|
HEAD_REF master
|
2018-10-28 03:50:27 +08:00
|
|
|
PATCHES
|
|
|
|
fix-cmake.patch
|
|
|
|
enable-std14.patch
|
2016-11-29 19:42:34 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2018-10-21 05:11:58 +08:00
|
|
|
PREFER_NINJA
|
2016-11-29 19:42:34 +08:00
|
|
|
OPTIONS
|
2018-10-21 05:11:58 +08:00
|
|
|
-DENTITYX_BUILD_TESTING=false
|
2016-11-29 19:42:34 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
|
|
|
|
# Handle copyright
|
|
|
|
file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/entityx)
|
|
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/entityx/COPYING ${CURRENT_PACKAGES_DIR}/share/entityx/copyright)
|