blob: a1abf45c97b448352e20a2e1d00d810e6fb5f8a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
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-hsrv.c
afb-hswitch.c
afb-method.c
afb-msg-json.c
afb-sig-handler.c
afb-websock.c
afb-ws-client.c
afb-ws-json1.c
afb-ws.c
afb-wsj1.c
session.c
verbose.c
websock.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})
TARGET_LINK_LIBRARIES(afb-client-demo ${link_libraries})
INSTALL(TARGETS afb-daemon
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
INSTALL(TARGETS afb-client-demo
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|