X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2FCMakeLists.txt;h=50e3ef37470ff9831c26feb6be009a4bff149245;hb=662faf40f0c11536afcaa7e2ff0969f247ae4965;hp=434332b44dde98c35964f64bcab199ca41aa95eb;hpb=4db4634b28378379bce04f4073c2a511b92b1ee6;p=src%2Fapp-framework-binder.git diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 434332b4..50e3ef37 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,9 +1,6 @@ -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}) +IF(librtlsdr_FOUND) + ADD_DEFINITIONS(-DHAVE_RADIO_PLUGIN=1) +ENDIF(librtlsdr_FOUND) -include_directories(${include_dirs}) -target_link_libraries(afb-daemon ${link_libraries}) - -INSTALL(TARGETS afb-daemon - RUNTIME DESTINATION bin) +ADD_LIBRARY(src OBJECT main.c config.c session.c http-svc.c rest-api.c) +INCLUDE_DIRECTORIES(${include_dirs})