2019-06-04 17:21:22 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO martinmoene/variant-lite
|
2021-10-22 13:38:46 +08:00
|
|
|
REF v2.0.0
|
|
|
|
SHA512 dd255d3664b42305e58c14a0bfc7d6ba54462656001e4e79c14fdb64a6f54b57a00ec3cf10d006614c849528529c6897031df4b52a49ecb91531e89d366d6a9c
|
2019-06-04 17:21:22 +08:00
|
|
|
)
|
|
|
|
|
2021-10-22 13:38:46 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-06-04 17:21:22 +08:00
|
|
|
OPTIONS
|
|
|
|
-DVARIANT_LITE_OPT_BUILD_TESTS=OFF
|
|
|
|
-DVARIANT_LITE_OPT_BUILD_EXAMPLES=OFF
|
|
|
|
)
|
|
|
|
|
2021-10-22 13:38:46 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-06-04 17:21:22 +08:00
|
|
|
|
2021-10-22 13:38:46 +08:00
|
|
|
vcpkg_cmake_config_fixup(
|
|
|
|
CONFIG_PATH "lib/cmake/${PORT}"
|
2019-06-04 17:21:22 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE
|
2021-10-22 13:38:46 +08:00
|
|
|
"${CURRENT_PACKAGES_DIR}/debug"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/lib"
|
2019-06-04 17:21:22 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
file(INSTALL
|
2021-10-22 13:38:46 +08:00
|
|
|
"${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright
|
2019-06-04 17:21:22 +08:00
|
|
|
)
|