File: FindCJSON.cmake

package info (click to toggle)
libcbor 0.10.2-2.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,440 kB
  • sloc: ansic: 8,540; makefile: 157; cpp: 101; python: 90; sh: 81; ruby: 6
file content (9 lines) | stat: -rw-r--r-- 223 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
include (LibFindMacros)

find_path(CJSON_INCLUDE_DIR NAMES cjson/cJSON.h)
find_library(CJSON_LIBRARY NAMES cjson)

set(CJSON_PROCESS_INCLUDES CJSON_INCLUDE_DIR)
set(CJSON_PROCESS_LIBS CJSON_LIBRARY)

libfind_process(CJSON)