2020-11-04 12:51:18 +08:00
|
|
|
#header-only library
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2022-06-18 06:03:58 +08:00
|
|
|
REPO commschamp/comms
|
2024-11-23 07:18:20 +08:00
|
|
|
REF "v${VERSION}"
|
|
|
|
SHA512 838b4c90a2c9c6374f0755a694057f60b53898dfdd100d16b0e81d308f6a62f3af9e680307b1782290d71c7c0d067fdf5af364e58f30907246b0fcad962e4ce8
|
2020-11-04 12:51:18 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2021-08-31 09:25:10 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-11-04 12:51:18 +08:00
|
|
|
OPTIONS
|
2022-06-18 06:03:58 +08:00
|
|
|
-DCC_COMMS_BUILD_UNIT_TESTS=OFF
|
|
|
|
-DBUILD_TESTING=OFF
|
2024-11-23 07:18:20 +08:00
|
|
|
-DCC_COMMS_WARN_AS_ERR=OFF
|
2020-11-04 12:51:18 +08:00
|
|
|
)
|
2021-08-31 09:25:10 +08:00
|
|
|
vcpkg_cmake_install()
|
2022-06-18 06:03:58 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME LibComms CONFIG_PATH lib/LibComms/cmake)
|
2021-08-31 09:25:10 +08:00
|
|
|
|
2022-06-18 06:03:58 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
2020-11-04 12:51:18 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2024-11-23 07:18:20 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
2021-08-31 09:25:10 +08:00
|
|
|
configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" @ONLY)
|