X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fprocd.git;a=blobdiff_plain;f=CMakeLists.txt;h=fc1ad3af66bba28558a1a8587929674d3471654e;hp=d0b951b83b05ec3178dbcb4fc00bf702690d2e98;hb=1dc968d494c86e4a48335428b7c5cb99ca12e106;hpb=6a96369265e7aab19a74c5264fa54b781026e834 diff --git a/CMakeLists.txt b/CMakeLists.txt index d0b951b..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) +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)