2021-01-29 11:21:46 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO mixxxdj/libkeyfinder
|
2024-02-22 01:23:46 +08:00
|
|
|
REF ${VERSION}
|
|
|
|
SHA512 31d86715172b62dd72b122a8d480db4598731b87ca58522ad797116acfcbc53b8ecf8fe7eb2b129857b5044b27d32dda9e03927e0a27f8edcdc5d6ce607a76eb
|
2021-01-29 11:21:46 +08:00
|
|
|
HEAD_REF main
|
|
|
|
)
|
|
|
|
|
2021-09-04 08:37:20 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2023-04-19 06:25:23 +08:00
|
|
|
OPTIONS
|
|
|
|
-DBUILD_TESTING=OFF
|
2021-01-29 11:21:46 +08:00
|
|
|
)
|
|
|
|
|
2021-09-04 08:37:20 +08:00
|
|
|
vcpkg_cmake_install()
|
2021-01-29 11:21:46 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2021-09-04 08:37:20 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME KeyFinder CONFIG_PATH lib/cmake/KeyFinder)
|
2022-01-05 12:01:21 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2021-01-29 11:21:46 +08:00
|
|
|
|
2021-09-04 08:37:20 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
2021-10-28 06:19:28 +08:00
|
|
|
|
2022-01-05 12:01:21 +08:00
|
|
|
file(REMOVE_RECURSE
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/include"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/share")
|