2021-03-29 18:25:14 +02:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO PJK/libcbor
|
2022-04-29 01:10:18 +02:00
|
|
|
REF v0.9.0
|
|
|
|
SHA512 710239f69d770212a82e933e59df1aba0fb3ec516ef6666a366f30a950565a52981b0d46ca7e0eea739f5785d79cc21fc19acd857a4a0b135f4f6aa3ef5fd3b0
|
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
|
2022-04-29 01:10:18 +02:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|