X-Git-Url: http://git.archive.openwrt.org/?p=project%2Frpcd.git;a=blobdiff_plain;f=CMakeLists.txt;h=ceb472e941620558fac586eb032a6930e7f61034;hp=60959d552d1328b21320a5a779da5be47305af67;hb=HEAD;hpb=032346f479a53683139a52baeb30b7399bc6df5e diff --git a/CMakeLists.txt b/CMakeLists.txt index 60959d5..ceb472e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,6 +28,12 @@ IF(crypt STREQUAL "crypt-NOTFOUND") SET(crypt "") ENDIF() +FIND_PATH(ubus_include_dir libubus.h) +INCLUDE_DIRECTORIES(${ubus_include_dir}) + +FIND_PATH(ubox_include_dir libubox/blobmsg_json.h) +INCLUDE_DIRECTORIES(${ubox_include_dir}) + ADD_EXECUTABLE(rpcd main.c exec.c session.c uci.c plugin.c) TARGET_LINK_LIBRARIES(rpcd ubox ubus uci dl blobmsg_json ${json} ${crypt})