Now json-c can be bundled to any cmake-based project and used with couple lines of code: add_subdirectory(json-c EXCLUDE_FROM_ALL) target_link_libraries(MyProject json-c)