2020-09-12 03:48:05 +08:00
|
|
|
# header only library
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO jamesdbrock/hffix
|
2023-01-27 11:11:49 +08:00
|
|
|
REF v1.2.1
|
|
|
|
SHA512 81947d5b2fbc2818b6ae7274febece8a813a67afc4a605bd92a1d7cb5df4e19e5df73a1a597c27898134fab1a0cc7c672d2dcba7688bab24184469b0760be06f
|
2020-09-12 03:48:05 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2023-01-27 11:11:49 +08:00
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
2020-09-12 03:48:05 +08:00
|
|
|
|
2023-01-27 11:11:49 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-09-12 03:48:05 +08:00
|
|
|
)
|
2023-01-27 11:11:49 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/hffix")
|
2020-09-12 03:48:05 +08:00
|
|
|
|
2023-01-27 11:11:49 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
2020-09-12 03:48:05 +08:00
|
|
|
|
2023-01-27 11:11:49 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|