2021-03-29 18:25:14 +02:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO PJK/libcbor
|
2023-03-15 02:59:55 +08:00
|
|
|
REF "v${VERSION}"
|
|
|
|
SHA512 23c6177443778d4b4833ec7ed0d0e639a0d4863372e3a38d772fdce2673eae6d5cb2a31a2a021d1a699082ea53494977c907fd0e94149b97cb23a4b6d039228a
|
2021-03-29 18:25:14 +02:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2022-04-29 01:10:18 +02:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
2021-03-29 18:25:14 +02:00
|
|
|
-DWITH_TESTS=OFF
|
|
|
|
-DWITH_EXAMPLES=OFF
|
|
|
|
-DVCPKG_VERBOSE=ON
|
2022-04-29 01:10:18 +02:00
|
|
|
-DSANITIZE=OFF
|
|
|
|
-DCBOR_CUSTOM_ALLOC=ON
|
|
|
|
)
|
2021-03-29 18:25:14 +02:00
|
|
|
|
2022-04-29 01:10:18 +02:00
|
|
|
vcpkg_cmake_build()
|
|
|
|
vcpkg_cmake_install()
|
2021-03-29 18:25:14 +02:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
|
|
|
# Add Cmake Packagefile
|
2022-04-29 01:10:18 +02:00
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/LibCborConfig.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
2021-03-29 18:25:14 +02:00
|
|
|
|
|
|
|
# Handle copyright
|
2023-03-15 02:59:55 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")
|