2019-12-24 06:35:45 +08:00
|
|
|
# header-only library
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO p-ranav/indicators
|
2021-09-29 23:38:00 +08:00
|
|
|
REF v2.2
|
|
|
|
SHA512 7CED2D3C320D51C7E0569104744730C8E2F952350BCAE214A9781EB43EF4002C8314937DB78461351741FC4C3AEE7A1364582B1274991E95EB30006A5F2A7EF9
|
2019-12-24 06:35:45 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2021-09-29 23:38:00 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-12-24 06:35:45 +08:00
|
|
|
OPTIONS
|
2020-04-04 05:39:04 +08:00
|
|
|
-DINDICATORS_BUILD_TESTS=OFF
|
|
|
|
-DINDICATORS_SAMPLES=OFF
|
|
|
|
-DINDICATORS_DEMO=OFF
|
2019-12-24 06:35:45 +08:00
|
|
|
)
|
|
|
|
|
2021-09-29 23:38:00 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-12-24 06:35:45 +08:00
|
|
|
|
2021-09-29 23:38:00 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/indicators)
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
|
|
|
|
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE.termcolor" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
2019-12-24 06:35:45 +08:00
|
|
|
|
|
|
|
|