X-Git-Url: http://git.archive.openwrt.org/?p=project%2Frpcd.git;a=blobdiff_plain;f=CMakeLists.txt;h=e9f158659b8a405f00643eab73324dc03c23947d;hp=3c3470016c9498782d69f10795a1706d38dbe09e;hb=3cac366777fb95fffd9521c3a78cfb9e2961afa4;hpb=9345600006c73767838efde4d7b900248fa8a1df diff --git a/CMakeLists.txt b/CMakeLists.txt index 3c34700..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 uci.c iwinfo.c) -TARGET_LINK_LIBRARIES(luci-rpcd ubox ubus uci iwinfo) +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)