2019-06-26 12:44:17 +08:00
|
|
|
if(NOT VCPKG_CMAKE_SYSTEM_NAME OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO MediaArea/ZenLib
|
2023-04-03 12:16:47 +08:00
|
|
|
REF ecb548043a6dbee15a07a43d4d3388509d849570 # v0.4.40
|
|
|
|
SHA512 9be9dfa20f4bf7e1f450b2ab19391ea091a091d242e98797652aa74ae595365e25f44ccca915b8889bc46245abf523949d22a012805a2f4f55742ae3c0e8932d
|
2019-06-26 12:44:17 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2021-12-10 10:06:35 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}/Project/CMake"
|
2019-06-26 12:44:17 +08:00
|
|
|
)
|
|
|
|
|
2021-12-10 10:06:35 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME zenlib CONFIG_PATH share/zenlib)
|
2021-12-22 12:05:32 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2019-06-26 12:44:17 +08:00
|
|
|
|
2021-12-10 10:06:35 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
2019-06-26 12:44:17 +08:00
|
|
|
|
2021-12-10 10:06:35 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/License.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|