mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-26 06:38:59 +08:00
d4c34fd271
* [libcbor] Initial commit * [libcbor] Add metadata * Changes made by vcpkg.exe format-manifest --all * Changes made by vcpkg.exe x-add-version libcbor --overwrite-version
14 lines
371 B
CMake
14 lines
371 B
CMake
# Distributed under the OSI-approved BSD 3-Clause License.
|
|
|
|
find_path(LIBCBOR_INCLUDE_DIR NAMES cbor.h)
|
|
|
|
find_library(LIBCBOR_LIBRARY cbor)
|
|
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(LIBCBOR DEFAULT_MSG LIBCBOR_LIBRARY LIBCBOR_INCLUDE_DIR)
|
|
|
|
if(LIBCBOR_FOUND)
|
|
set(LIBCBOR_LIBRARIES ${LIBCBOR_LIBRARY})
|
|
endif()
|
|
|
|
mark_as_advanced(LIBCBOR_INCLUDE_DIR LIBCBOR_LIBRARY)
|