X-Git-Url: http://git.archive.openwrt.org/?p=project%2Frpcd.git;a=blobdiff_plain;f=CMakeLists.txt;h=e9f158659b8a405f00643eab73324dc03c23947d;hp=eef3856416574da2c125f09ec9d0b0fb6a720edc;hb=3cac366777fb95fffd9521c3a78cfb9e2961afa4;hpb=0607cfda5b3449d0850861c140d36fbcc0f2ef1d diff --git a/CMakeLists.txt b/CMakeLists.txt index eef3856..e9f1586 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,8 +10,11 @@ IF(APPLE) LINK_DIRECTORIES(/opt/local/lib) ENDIF() -ADD_EXECUTABLE(luci-rpcd main.c session.c file.c) -TARGET_LINK_LIBRARIES(luci-rpcd ubox ubus) +ADD_EXECUTABLE(luci-rpcd main.c exec.c session.c file.c uci.c iwinfo.c luci2.c plugin.c) + +FIND_LIBRARY(json NAMES json-c json) + +TARGET_LINK_LIBRARIES(luci-rpcd ubox ubus uci iwinfo blobmsg_json ${json}) SET(CMAKE_INSTALL_PREFIX /usr)