X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2FCMakeLists.txt;h=a1abf45c97b448352e20a2e1d00d810e6fb5f8a5;hb=28a3f9d5c0b92c7dd3a3844e73b83aa350d5e165;hp=68beea00e6c3cb532346941b8e26f7a8d2bb9696;hpb=7b97a7f27578d7f4ce7cc994e5df303ac5d9c886;p=src%2Fapp-framework-binder.git diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 68beea00..a1abf45c 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,5 +1,5 @@ -ADD_LIBRARY(src OBJECT +ADD_LIBRARY(afb-lib OBJECT afb-api-dbus.c afb-api-so.c afb-apis.c @@ -16,11 +16,24 @@ ADD_LIBRARY(src OBJECT afb-ws-json1.c afb-ws.c afb-wsj1.c - main.c session.c verbose.c websock.c ) + +INCLUDE_DIRECTORIES(${include_dirs}) + +ADD_EXECUTABLE(afb-daemon $ main.c) INCLUDE_DIRECTORIES(${include_dirs}) +TARGET_LINK_LIBRARIES(afb-daemon ${link_libraries}) + +ADD_EXECUTABLE(afb-client-demo $ 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})