From 71c0f14a46f85027b95f2f5f6d3d219cc9e3783e Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Sat, 8 Oct 2011 17:11:12 -0700 Subject: gr: the CMakeLists.txt took a chill pill --- gr-uhd/grc/CMakeLists.txt | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'gr-uhd/grc/CMakeLists.txt') 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 -- cgit