Adding in CMAKE commands for linking JSON-C

pull/4/head
Jacob Windle 2019-12-16 09:08:16 -05:00
parent 188bb8c7be
commit 4638106059
1 changed files with 6 additions and 1 deletions

View File

@ -1,2 +1,7 @@
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})