xref: /freebsd/contrib/libcbor/CMakeModules/FindCJSON.cmake (revision ed549cb0c53f8438c52593ce811f6fcc812248e9)
1include (LibFindMacros)
2
3find_path(CJSON_INCLUDE_DIR NAMES cjson/cJSON.h)
4find_library(CJSON_LIBRARY NAMES cjson)
5
6set(CJSON_PROCESS_INCLUDES CJSON_INCLUDE_DIR)
7set(CJSON_PROCESS_LIBS CJSON_LIBRARY)
8
9libfind_process(CJSON)
10