Add Radio API plugin
[src/app-framework-binder.git] / src / CMakeLists.txt
1 SET(AFB-DAEMON_HEADERS local-def.h proto-def.h)
2 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)
3
4 IF(librtlsdr_FOUND)
5   ADD_DEFINITIONS(-DWITH_RADIO_PLUGIN=1)
6   SET(AFB-DAEMON_SOURCES ${AFB-DAEMON_SOURCES} radio-api.c)
7 ENDIF(librtlsdr_FOUND)
8
9 ADD_EXECUTABLE(afb-daemon ${AFB-DAEMON_SOURCES})
10
11 include_directories(${include_dirs})
12 target_link_libraries(afb-daemon ${link_libraries})
13
14 INSTALL(TARGETS afb-daemon
15         RUNTIME DESTINATION bin)