2021-03-25 17:51:25 +01:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO eranpeer/FakeIt
|
2023-09-29 14:33:02 +08:00
|
|
|
REF "${VERSION}"
|
2024-10-17 11:07:10 +03:00
|
|
|
SHA512 CA9932DF909D6C7F75AB775B6AC9695C80F1DC4A58599C789EEA279A05183E9568BB80B63EBDA5EF77EDD54D766977AB7C5BCD565FB45A61B56CB8D43E49007B
|
2021-03-25 17:51:25 +01:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2024-01-24 15:28:41 -08:00
|
|
|
set(VCPKG_BUILD_TYPE release) # header-only port
|
|
|
|
|
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
2024-09-18 00:41:42 +02:00
|
|
|
-DCMAKE_INSTALL_INCLUDEDIR=include/fakeit/single_header
|
2024-01-24 15:28:41 -08:00
|
|
|
-DENABLE_TESTING=OFF
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
|
2024-09-18 00:41:42 +02:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/FakeIt)
|
2024-01-24 15:28:41 -08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
|
|
|
|
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
2021-03-25 17:51:25 +01:00
|
|
|
|
2023-12-07 06:45:06 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|