X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fprocd.git;a=blobdiff_plain;f=CMakeLists.txt;h=fc1ad3af66bba28558a1a8587929674d3471654e;hp=16e7cb5869b202eed285ddb96500e4fbbbf5b904;hb=1dc968d494c86e4a48335428b7c5cb99ca12e106;hpb=843fe9bb5b77fd20153816400ce918989730f99d diff --git a/CMakeLists.txt b/CMakeLists.txt index 16e7cb5..fc1ad3a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 2.6) PROJECT(procd C) -ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -Wmissing-declarations) +ADD_DEFINITIONS(-Os -ggdb -Wall -Werror --std=gnu99 -Wmissing-declarations) SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "") @@ -10,9 +10,10 @@ IF(APPLE) LINK_DIRECTORIES(/opt/local/lib) ENDIF() -SET(SOURCES main.c ubus.c api.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)