Link json-c

This commit is contained in:
Jo-Philipp Wich 2013-09-01 22:12:19 +02:00
parent 90e8e9ca00
commit 3cac366777

View file

@ -11,7 +11,10 @@ IF(APPLE)
ENDIF() ENDIF()
ADD_EXECUTABLE(luci-rpcd main.c exec.c session.c file.c uci.c iwinfo.c luci2.c plugin.c) ADD_EXECUTABLE(luci-rpcd main.c exec.c session.c file.c uci.c iwinfo.c luci2.c plugin.c)
TARGET_LINK_LIBRARIES(luci-rpcd ubox ubus uci iwinfo blobmsg_json)
FIND_LIBRARY(json NAMES json-c json)
TARGET_LINK_LIBRARIES(luci-rpcd ubox ubus uci iwinfo blobmsg_json ${json})
SET(CMAKE_INSTALL_PREFIX /usr) SET(CMAKE_INSTALL_PREFIX /usr)