X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2FCMakeLists.txt;h=c3537dc6268d556079c60bb6571e545c9bad1888;hb=82ad8f3b17d2a91be7e6c68458526908437fafa0;hp=663a79170c750d6c2d57a48af208d5e6f6779068;hpb=335eeec7aaf944d66cac87b5bb3f64f8fc7e385e;p=src%2Fapp-framework-binder.git diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 663a7917..c3537dc6 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,15 +1,12 @@ -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 + main.c + config.c + session.c + http-svc.c + rest-api.c + afb-method.c + helper-api.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)