summaryrefslogtreecommitdiffstats
path: root/plugins/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/CMakeLists.txt')
-rw-r--r--plugins/CMakeLists.txt8
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt
index 0ddaf453..76969380 100644
--- a/plugins/CMakeLists.txt
+++ b/plugins/CMakeLists.txt
@@ -1,11 +1,13 @@
-SET(AUDIO_PLUGIN audio/audio-api.c)
SET(SESSION_PLUGIN session/token-api.c)
SET(SAMPLE_PLUGINS samples/HelloWorld.c)
+IF(alsa_FOUND)
+ SET(AUDIO_PLUGIN audio/audio-api.c audio/audio-alsa.c)
+ENDIF(alsa_FOUND)
IF(librtlsdr_FOUND)
- SET(RADIO_PLUGIN radio/radio-rtlsdr.c radio/radio-api.c)
+ SET(RADIO_PLUGIN radio/radio-api.c radio/radio-rtlsdr.c)
ENDIF(librtlsdr_FOUND)
-SET(PLUGINS_SOURCES ${AUDIO_PLUGIN} ${SESSION_PLUGIN} ${RADIO_PLUGIN} ${SAMPLE_PLUGINS})
+SET(PLUGINS_SOURCES ${SESSION_PLUGIN} ${SAMPLE_PLUGINS} ${AUDIO_PLUGIN} ${RADIO_PLUGIN})
ADD_LIBRARY(plugins OBJECT ${PLUGINS_SOURCES})
INCLUDE_DIRECTORIES(${include_dirs})