diff --git a/CMakeLists.txt b/CMakeLists.txt index 5f9a23e..324334f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,2 +1,7 @@ project(HostBlocker) -add_executable(hb main.c) \ No newline at end of file +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}) \ No newline at end of file