Adding in CMAKE commands for linking JSON-C
This commit is contained in:
parent
188bb8c7be
commit
4638106059
@ -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})
|
Loading…
Reference in New Issue
Block a user