File: CMakeLists.txt

package info (click to toggle)
tinycbor 7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 856 kB
  • sloc: ansic: 3,968; cpp: 3,494; perl: 156; sh: 44; makefile: 26
file content (10 lines) | stat: -rw-r--r-- 371 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
# Copyright (C) 2025 Intel Corporation
# SPDX-License-Identifier: MIT
include(FindPkgConfig)
pkg_check_modules(LIBCJSON libcjson)
if(LIBCJSON_FOUND)
  tinycbor_add_executable(json2cbor json2cbor.c)
  target_include_directories(json2cbor SYSTEM PUBLIC ${LIBCJSON_INCLUDE_DIRS})
  target_link_libraries(json2cbor ${LIBCJSON_LIBRARIES})
  install(TARGETS json2cbor)
endif()