projects
/
project
/
ubus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
libubus: do not register/unregister with uloop during sync requests
[project/ubus.git]
/
examples
/
CMakeLists.txt
diff --git
a/examples/CMakeLists.txt
b/examples/CMakeLists.txt
index
59ba6ab
..
81f9997
100644
(file)
--- a/
examples/CMakeLists.txt
+++ b/
examples/CMakeLists.txt
@@
-1,6
+1,12
@@
cmake_minimum_required(VERSION 2.6)
ADD_DEFINITIONS(-I..)
cmake_minimum_required(VERSION 2.6)
ADD_DEFINITIONS(-I..)
-ADD_EXECUTABLE(ubus-example ubus-example.c)
-TARGET_LINK_LIBRARIES(ubus-example ubus ubox)
+INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/..)
+IF (BUILD_EXAMPLES)
+ ADD_EXECUTABLE(server server.c count.c)
+ TARGET_LINK_LIBRARIES(server ubus ${ubox_library} ${blob_library} ${json})
+
+ ADD_EXECUTABLE(client client.c count.c)
+ TARGET_LINK_LIBRARIES(client ubus ${ubox_library})
+ENDIF()