2019-08-30 05:10:24 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO martinmoene/clue
|
2021-09-28 10:50:26 +08:00
|
|
|
REF v1.0.0
|
|
|
|
SHA512 A142EDD57753DA36687803332E81BD9D4413203F69F0055466219437C3385C593384DA2A3C6BC67B39EC7ED0C36854354F34C2AA2D4CE4F1D2B912546F4F46B2
|
2019-08-30 05:10:24 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2021-09-28 10:50:26 +08:00
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
2019-08-30 05:10:24 +08:00
|
|
|
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
2021-07-21 01:24:58 +08:00
|
|
|
FEATURES
|
|
|
|
test CLUE_BUILD_TEST
|
2019-08-30 05:10:24 +08:00
|
|
|
)
|
|
|
|
|
2021-09-28 10:50:26 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-08-30 05:10:24 +08:00
|
|
|
OPTIONS ${FEATURE_OPTIONS}
|
|
|
|
)
|
|
|
|
|
2021-09-28 10:50:26 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-08-30 05:10:24 +08:00
|
|
|
|
2021-09-28 10:50:26 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
2019-08-30 05:10:24 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2021-09-28 10:50:26 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE_1_0.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|