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