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
Refactoring requests and context handling
[src/app-framework-binder.git]
/
src
/
CMakeLists.txt
diff --git
a/src/CMakeLists.txt
b/src/CMakeLists.txt
index
663a791
..
707b2e0
100644
(file)
--- a/
src/CMakeLists.txt
+++ b/
src/CMakeLists.txt
@@
-1,15
+1,23
@@
-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)
-IF(librtlsdr_FOUND)
- ADD_DEFINITIONS(-DWITH_RADIO_PLUGIN=1)
- SET(AFB-DAEMON_SOURCES ${AFB-DAEMON_SOURCES} radio-api.c)
-ENDIF(librtlsdr_FOUND)
+ADD_LIBRARY(src OBJECT
+ afb-api-dbus.c
+ afb-api-so.c
+ afb-apis.c
+ afb-common.c
+ afb-context.c
+ afb-hreq.c
+ afb-hsrv.c
+ afb-hswitch.c
+ afb-method.c
+ afb-msg-json.c
+ afb-websock.c
+ afb-ws-json.c
+ afb-ws.c
+ main.c
+ session.c
+ verbose.c
+ websock.c
+)
-
ADD_EXECUTABLE(afb-daemon ${AFB-DAEMON_SOURCES
})
+
INCLUDE_DIRECTORIES(${include_dirs
})
-include_directories(${include_dirs})
-target_link_libraries(afb-daemon ${link_libraries})
-
-INSTALL(TARGETS afb-daemon
- RUNTIME DESTINATION bin)