2020-11-13 05:27:47 +08:00
|
|
|
#header-only library
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO commschamp/cc.ublox.generated
|
2022-06-18 06:03:58 +08:00
|
|
|
REF v1.0
|
|
|
|
SHA512 0c487d9409c2f2818024f6232832762527250c3563a5eb5c639ad49943931ceb24616db2432bcd752d1a84820ec5349522510dcd202508641d3f29aef41ca1e5
|
2020-11-13 05:27:47 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2022-06-18 06:03:58 +08:00
|
|
|
vcpkg_cmake_configure(
|
2021-08-31 09:25:10 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-11-13 05:27:47 +08:00
|
|
|
OPTIONS
|
2022-06-18 06:03:58 +08:00
|
|
|
-DOPT_REQUIRE_COMMS_LIB=ON
|
|
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=ON
|
2020-11-13 05:27:47 +08:00
|
|
|
)
|
2022-06-18 06:03:58 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-11-13 05:27:47 +08:00
|
|
|
|
2022-06-18 06:03:58 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME ublox CONFIG_PATH lib/ublox/cmake)
|
2020-12-18 19:04:07 +08:00
|
|
|
# currently this is only a header only library. after moving lib/ublox to share this lib path will be empty
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
2020-11-13 05:27:47 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2022-06-18 06:03:58 +08:00
|
|
|
file(INSTALL "${CURRENT_PORT_DIR}/copyright" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|