summaryrefslogtreecommitdiff
path: root/gr-vocoder/grc/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'gr-vocoder/grc/CMakeLists.txt')
-rw-r--r--gr-vocoder/grc/CMakeLists.txt23
1 files changed, 17 insertions, 6 deletions
diff --git a/gr-vocoder/grc/CMakeLists.txt b/gr-vocoder/grc/CMakeLists.txt
index f8cf8231b2..fd320545ad 100644
--- a/gr-vocoder/grc/CMakeLists.txt
+++ b/gr-vocoder/grc/CMakeLists.txt
@@ -1,4 +1,4 @@
-# Copyright 2011 Free Software Foundation, Inc.
+# Copyright 2011,2016 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
@@ -21,8 +21,6 @@ install(FILES
vocoder_alaw_decode_bs.xml
vocoder_alaw_encode_sb.xml
vocoder_block_tree.xml
- vocoder_codec2_decode_ps.xml
- vocoder_codec2_encode_sp.xml
vocoder_cvsd_decode_bs.xml
vocoder_cvsd_decode.xml
vocoder_cvsd_encode_sb.xml
@@ -33,10 +31,23 @@ install(FILES
vocoder_g723_24_encode_sb.xml
vocoder_g723_40_decode_bs.xml
vocoder_g723_40_encode_sb.xml
- vocoder_gsm_fr_decode_ps.xml
- vocoder_gsm_fr_encode_sp.xml
vocoder_ulaw_decode_bs.xml
vocoder_ulaw_encode_sb.xml
DESTINATION ${GRC_BLOCKS_DIR}
- COMPONENT "vocoder_python"
)
+
+if(LIBCODEC2_FOUND)
+ install(FILES
+ vocoder_codec2_decode_ps.xml
+ vocoder_codec2_encode_sp.xml
+ DESTINATION ${GRC_BLOCKS_DIR}
+ )
+endif(LIBCODEC2_FOUND)
+
+if(LIBGSM_FOUND)
+ install(FILES
+ vocoder_gsm_fr_decode_ps.xml
+ vocoder_gsm_fr_encode_sp.xml
+ DESTINATION ${GRC_BLOCKS_DIR}
+ )
+endif(LIBGSM_FOUND)