Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
example of integration with websocket in C
[src/app-framework-binder.git]
/
src
/
CMakeLists.txt
diff --git
a/src/CMakeLists.txt
b/src/CMakeLists.txt
index
605a0df
..
67e3abc
100644
(file)
--- a/
src/CMakeLists.txt
+++ b/
src/CMakeLists.txt
@@
-1,14
+1,36
@@
-ADD_LIBRARY(
src
OBJECT
-
main
.c
-
session
.c
-
http-svc
.c
-
rest-api
.c
- afb-
method
.c
+ADD_LIBRARY(
afb-lib
OBJECT
+
afb-api-dbus
.c
+
afb-api-so
.c
+
afb-apis
.c
+
afb-common
.c
+ afb-
context
.c
afb-hreq.c
afb-hreq.c
+ afb-hsrv.c
+ afb-hswitch.c
+ afb-method.c
+ afb-msg-json.c
+ afb-sig-handler.c
afb-websock.c
afb-websock.c
+ afb-ws-client.c
+ afb-ws-json1.c
+ afb-ws.c
+ afb-wsj1.c
+ session.c
+ verbose.c
websock.c
websock.c
- helper-api.c)
+)
+
+
+INCLUDE_DIRECTORIES(${include_dirs})
+
+ADD_EXECUTABLE(afb-daemon $<TARGET_OBJECTS:afb-lib> main.c)
+INCLUDE_DIRECTORIES(${include_dirs})
+TARGET_LINK_LIBRARIES(afb-daemon ${link_libraries})
+ADD_EXECUTABLE(afb-client-demo $<TARGET_OBJECTS:afb-lib> afb-client-demo.c)
INCLUDE_DIRECTORIES(${include_dirs})
INCLUDE_DIRECTORIES(${include_dirs})
+TARGET_LINK_LIBRARIES(afb-client-demo ${link_libraries})
+INSTALL(TARGETS afb-daemon
+ RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_BINDIR})