summaryrefslogtreecommitdiff
path: root/gr-shd/grc
diff options
context:
space:
mode:
authorTom Rondeau2011-10-24 16:32:22 -0400
committerTom Rondeau2011-10-24 16:32:22 -0400
commit50c1e2e35b8ede2798753700a92091c0cb5f0267 (patch)
treed36c54b7e1a2dfb062a634c19725b849451c7a00 /gr-shd/grc
parente9f4580047977cd319d1991060e2d78f15f27f8f (diff)
downloadgnuradio-50c1e2e35b8ede2798753700a92091c0cb5f0267.tar.gz
gnuradio-50c1e2e35b8ede2798753700a92091c0cb5f0267.tar.bz2
gnuradio-50c1e2e35b8ede2798753700a92091c0cb5f0267.zip
shd: adding gr-shd to cmake build structure. Adding missed app to autotools build.
Diffstat (limited to 'gr-shd/grc')
-rw-r--r--gr-shd/grc/CMakeLists.txt45
1 files changed, 45 insertions, 0 deletions
diff --git a/gr-shd/grc/CMakeLists.txt b/gr-shd/grc/CMakeLists.txt
new file mode 100644
index 000000000..f35d36ba3
--- /dev/null
+++ b/gr-shd/grc/CMakeLists.txt
@@ -0,0 +1,45 @@
+# Copyright 2011 Free Software Foundation, Inc.
+#
+# This file is part of GNU Radio
+#
+# GNU Radio is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3, or (at your option)
+# any later version.
+#
+# GNU Radio is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GNU Radio; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 51 Franklin Street,
+# Boston, MA 02110-1301, USA.
+
+########################################################################
+# Rules for generating the source and sink xml wrappers
+########################################################################
+include(GrPython)
+
+macro(GEN_BLOCK_XML _generator _xml_block)
+ set(generator ${CMAKE_CURRENT_SOURCE_DIR}/${_generator})
+ set(xml_block ${CMAKE_CURRENT_BINARY_DIR}/${_xml_block})
+ list(APPEND xml_blocks ${xml_block})
+ add_custom_command(
+ DEPENDS ${generator} OUTPUT ${xml_block}
+ COMMAND ${PYTHON_EXECUTABLE} ${generator} ${xml_block}
+ )
+endmacro(GEN_BLOCK_XML)
+
+GEN_BLOCK_XML(gen_shd_smini_blocks.py shd_smini_source.xml)
+GEN_BLOCK_XML(gen_shd_smini_blocks.py shd_smini_sink.xml)
+
+add_custom_target(shd_grc_xml_blocks ALL DEPENDS ${xml_blocks})
+
+install(FILES
+ ${xml_blocks}
+ shd_block_tree.xml
+ DESTINATION ${GRC_BLOCKS_DIR}
+ COMPONENT "shd_python"
+)