1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
# MACRO(REGISTER_TAP_FILES _outputfile) set(_sources ${ARGN}) ADD_CUSTOM_COMMAND( OUTPUT ${_outputfile} COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/tools/make-regs.py taps ${_outputfile} ${_sources} DEPENDS ${CMAKE_SOURCE_DIR}/tools/make-regs.py ${_sources} COMMENT "Making ${_outputfile}" ) ENDMACRO(REGISTER_TAP_FILES)