add options to override the ubus socket name for the cli and the example program
[project/ubus.git] / CMakeLists.txt
index 10b792b..b791c7c 100644 (file)
@@ -16,10 +16,10 @@ TARGET_LINK_LIBRARIES(ubusd ubox)
 
 ADD_EXECUTABLE(cli cli.c)
 SET_TARGET_PROPERTIES(cli PROPERTIES OUTPUT_NAME ubus)
-TARGET_LINK_LIBRARIES(cli ubus ubox json)
+TARGET_LINK_LIBRARIES(cli ubus ubox blobmsg_json json)
 
-ADD_EXECUTABLE(listener listener.c)
-TARGET_LINK_LIBRARIES(listener ubus ubox)
+ADD_EXECUTABLE(ubus-example ubus-example.c)
+TARGET_LINK_LIBRARIES(ubus-example ubus ubox)
 
 SET(CMAKE_INSTALL_PREFIX /usr)