summaryrefslogtreecommitdiff
path: root/gr-uhd/grc/CMakeLists.txt
diff options
context:
space:
mode:
authorJosh Blum2011-10-08 17:11:12 -0700
committerJosh Blum2011-10-08 17:11:12 -0700
commit71c0f14a46f85027b95f2f5f6d3d219cc9e3783e (patch)
tree046d89555243ede65bfc7bc0a6cbfc7f870ff4cb /gr-uhd/grc/CMakeLists.txt
parent63b87bf4e6e9a2f1112c17c57796b69b3b8a2b3e (diff)
downloadgnuradio-71c0f14a46f85027b95f2f5f6d3d219cc9e3783e.tar.gz
gnuradio-71c0f14a46f85027b95f2f5f6d3d219cc9e3783e.tar.bz2
gnuradio-71c0f14a46f85027b95f2f5f6d3d219cc9e3783e.zip
gr: the CMakeLists.txt took a chill pill
Diffstat (limited to 'gr-uhd/grc/CMakeLists.txt')
-rw-r--r--gr-uhd/grc/CMakeLists.txt18
1 files changed, 9 insertions, 9 deletions
diff --git a/gr-uhd/grc/CMakeLists.txt b/gr-uhd/grc/CMakeLists.txt
index d89b8d77e..3297db8d7 100644
--- a/gr-uhd/grc/CMakeLists.txt
+++ b/gr-uhd/grc/CMakeLists.txt
@@ -20,24 +20,24 @@
########################################################################
# Rules for generating the source and sink xml wrappers
########################################################################
-INCLUDE(GrPython)
+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(
+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)
+endmacro(GEN_BLOCK_XML)
GEN_BLOCK_XML(gen_uhd_usrp_blocks.py uhd_usrp_source.xml)
GEN_BLOCK_XML(gen_uhd_usrp_blocks.py uhd_usrp_sink.xml)
-ADD_CUSTOM_TARGET(uhd_grc_xml_blocks ALL DEPENDS ${xml_blocks})
+add_custom_target(uhd_grc_xml_blocks ALL DEPENDS ${xml_blocks})
-INSTALL(FILES
+install(FILES
${xml_blocks}
uhd_amsg_source.xml
uhd_block_tree.xml