mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 12:28:59 +08:00
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)
|