X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fprocd.git;a=blobdiff_plain;f=CMakeLists.txt;h=fc1ad3af66bba28558a1a8587929674d3471654e;hp=ac8861604ac0b50a7c3fdca600ae53f0a64ee47a;hb=0e1ddb8cc10fab53958d5a73329efefaa49b7b12;hpb=0a7d365974184880ff573d7272f04777889deaaa diff --git a/CMakeLists.txt b/CMakeLists.txt index ac88616..fc1ad3a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,9 +10,10 @@ IF(APPLE) LINK_DIRECTORIES(/opt/local/lib) ENDIF() -SET(SOURCES main.c ubus.c service.c instance.c utils.c md5.c) +SET(SOURCES main.c ubus.c service.c instance.c utils.c md5.c hotplug-rule.c hotplug.c) -SET(LIBS ubox ubus) +find_library(json NAMES json-c json) +SET(LIBS ubox ubus ${json} blobmsg_json) IF(DEBUG) ADD_DEFINITIONS(-DDEBUG -g3)