2021-01-29 11:21:46 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO mixxxdj/libkeyfinder
|
2021-09-04 08:37:20 +08:00
|
|
|
REF v2.2.5
|
|
|
|
SHA512 54463d1f1111dc474d3e43723fddd5579ea1a3842f99f43e50e85622a1d6ee6fe42b22c300ce5ba5807cf6b2d7067af741773af95974a42c5d863c53165893eb
|
2021-01-29 11:21:46 +08:00
|
|
|
HEAD_REF main
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
2021-09-04 08:37:20 +08:00
|
|
|
FEATURES
|
|
|
|
test BUILD_TESTING
|
2021-01-29 11:21:46 +08:00
|
|
|
)
|
|
|
|
|
2021-09-04 08:37:20 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2021-01-29 11:21:46 +08:00
|
|
|
OPTIONS ${FEATURE_OPTIONS}
|
|
|
|
)
|
|
|
|
|
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)
|
2021-01-29 11:21:46 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
|
2021-09-04 08:37:20 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|