forked from etc/pineapple-src
13 lines
371 B
CMake
Executable file
13 lines
371 B
CMake
Executable file
# 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)
|