2017-09-26 20:08:27 +08:00
|
|
|
vcpkg_from_github(OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO "lsalzman/enet"
|
2021-06-03 04:42:49 +08:00
|
|
|
REF e0e7045b7e056b454b5093cb34df49dc4cee0bee # v1.3.17
|
2017-09-26 20:08:27 +08:00
|
|
|
HEAD_REF master
|
2021-06-03 04:42:49 +08:00
|
|
|
SHA512 006a78edcc2059d8cee47a163d308dd02120a54f9c203401b83eb6cb4ab3e56cf09988d3c35b436a1e9f74c01296995ae6fdd46f6d354fe8261cf19cdde3df5d
|
2017-09-26 20:08:27 +08:00
|
|
|
)
|
|
|
|
|
2021-09-24 08:57:27 +08:00
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
2017-09-26 20:08:27 +08:00
|
|
|
|
2021-09-24 08:57:27 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2017-09-26 20:08:27 +08:00
|
|
|
# OPTIONS -DUSE_THIS_IN_ALL_BUILDS=1 -DUSE_THIS_TOO=2
|
|
|
|
# OPTIONS_RELEASE -DOPTIMIZE=1
|
|
|
|
# OPTIONS_DEBUG -DDEBUGGABLE=1
|
|
|
|
)
|
|
|
|
|
2021-09-24 08:57:27 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-enet CONFIG_PATH share/unofficial-enet)
|
2017-09-26 20:08:27 +08:00
|
|
|
|
2021-09-24 08:57:27 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2017-09-26 20:08:27 +08:00
|
|
|
|
2019-09-06 01:43:09 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2017-09-26 20:08:27 +08:00
|
|
|
|
2021-09-24 08:57:27 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|