X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2FCMakeLists.txt;h=707b2e09389ccc5ea583645397b15f57ccb236a4;hb=f1b901ed676b2d45ec8e6ae3d6ef2f94d79f9ee6;hp=434332b44dde98c35964f64bcab199ca41aa95eb;hpb=4db4634b28378379bce04f4073c2a511b92b1ee6;p=src%2Fapp-framework-binder.git diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 434332b4..707b2e09 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,9 +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) -ADD_EXECUTABLE(afb-daemon ${AFB-DAEMON_SOURCES}) -include_directories(${include_dirs}) -target_link_libraries(afb-daemon ${link_libraries}) +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 +) + +INCLUDE_DIRECTORIES(${include_dirs}) -INSTALL(TARGETS afb-daemon - RUNTIME DESTINATION bin)