Adding in CMAKE commands for linking JSON-C

This commit is contained in:
Jacob Windle 2019-12-16 09:08:16 -05:00
parent 188bb8c7be
commit 4638106059

View File

@ -1,2 +1,7 @@
project(HostBlocker) project(HostBlocker)
add_executable(hb main.c) find_package(PkgConfig REQUIRED)
pkg_check_modules(JSONC REQUIRED json-c)
add_executable(hb main.c)
target_link_libraries(hb ${JSONC_LIBS})
target_include_directories(hb PUBLIC ${JSONC_INCLUDE_DIRS})