xref: /freebsd/contrib/libcbor/CMakeModules/FindCJSON.cmake (revision fe75646a0234a261c0013bf1840fdac4acaf0cec)
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