X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2FCMakeLists.txt;h=ebf023af82944dce87b100843ffdb02bfcd4f1f1;hb=61354a55ac2abd9e83e1f869cdb735654d6eb74a;hp=434332b44dde98c35964f64bcab199ca41aa95eb;hpb=4db4634b28378379bce04f4073c2a511b92b1ee6;p=src%2Fapp-framework-binder.git diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 434332b4..ebf023af 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,9 +1,9 @@ -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(alsa_FOUND) + ADD_DEFINITIONS(-DHAVE_AUDIO_PLUGIN=1) +ENDIF(alsa_FOUND) +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})