Switch to libsystemd events
[src/app-framework-binder.git] / src / CMakeLists.txt
index 434332b..bc5fd4f 100644 (file)
@@ -1,9 +1,21 @@
-SET(AFB-DAEMON_HEADERS local-def.h proto-def.h)
-SET(AFB-DAEMON_SOURCES main.c config.c session.c http-svc.c afbs-api.c dbus-api.c rest-api.c alsa-api.c)
-ADD_EXECUTABLE(afb-daemon ${AFB-DAEMON_SOURCES})
 
-include_directories(${include_dirs})
-target_link_libraries(afb-daemon ${link_libraries})
+ADD_LIBRARY(src OBJECT
+       main.c
+       session.c
+       afb-hsrv.c
+       afb-hswitch.c
+       afb-apis.c
+       afb-api-so.c
+       afb-method.c
+       afb-hreq.c
+       afb-websock.c
+       afb-ws.c
+       afb-ws-json.c
+       afb-msg-json.c
+       afb-common.c
+       websock.c
+       verbose.c
+)
+
+INCLUDE_DIRECTORIES(${include_dirs})
 
-INSTALL(TARGETS afb-daemon
-        RUNTIME DESTINATION bin)