diff options
author | albert-github <albert.tests@gmail.com> | 2019-09-05 12:04:14 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2019-09-05 12:04:14 (GMT) |
commit | aca16ea3b4e4beef9bf067d0b532dfa3802f7a3d (patch) | |
tree | 9c040ab60c4d6f7c1bd3503abb1b2f6d219d86f2 /addon/doxywizard/CMakeLists.txt | |
parent | 98cc801013b16d827d91567998ead7b24fd78b6d (diff) | |
download | Doxygen-aca16ea3b4e4beef9bf067d0b532dfa3802f7a3d.zip Doxygen-aca16ea3b4e4beef9bf067d0b532dfa3802f7a3d.tar.gz Doxygen-aca16ea3b4e4beef9bf067d0b532dfa3802f7a3d.tar.bz2 |
Consistent way to show scanner state
Create a consistent way to display the state mnemonics of the different scanners (analogous to the fortranscanner.l)
Use an automatic procedure to generate the routine with the translation of the states to a string.
Diffstat (limited to 'addon/doxywizard/CMakeLists.txt')
-rw-r--r-- | addon/doxywizard/CMakeLists.txt | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/addon/doxywizard/CMakeLists.txt b/addon/doxywizard/CMakeLists.txt index 6ae71a6..5b1c9fa 100644 --- a/addon/doxywizard/CMakeLists.txt +++ b/addon/doxywizard/CMakeLists.txt @@ -72,7 +72,17 @@ OUTPUT ${GENERATED_SRC_WIZARD}/configdoc.cpp ) set_source_files_properties(${GENERATED_SRC_WIZARD}/configdoc.cpp PROPERTIES GENERATED 1) -FLEX_TARGET(config_doxyw config_doxyw.l ${GENERATED_SRC_WIZARD}/config_doxyw.cpp COMPILE_FLAGS "${LEX_FLAGS}") +set(LEX_FILES config_doxyw) +foreach(lex_file ${LEX_FILES}) + add_custom_command( + COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/src/scan_states.py ${CMAKE_SOURCE_DIR}/addon/doxywizard/${lex_file}.l > ${GENERATED_SRC_WIZARD}/${lex_file}.l.h + DEPENDS ${CMAKE_SOURCE_DIR}/src/scan_states.py ${CMAKE_SOURCE_DIR}/addon/doxywizard/${lex_file}.l + OUTPUT ${GENERATED_SRC_WIZARD}/${lex_file}.l.h + ) + set_source_files_properties(${GENERATED_SRC_WIZARD}/${lex_file}.l.h PROPERTIES GENERATED 1) + + FLEX_TARGET(${lex_file} ${lex_file}.l ${GENERATED_SRC_WIZARD}/${lex_file}.cpp COMPILE_FLAGS "${LEX_FLAGS}") +endforeach() qt_wrap_cpp(doxywizard_MOC doxywizard.h @@ -97,6 +107,7 @@ inputint.cpp inputstrlist.cpp ${GENERATED_SRC_WIZARD}/settings.h ${GENERATED_SRC_WIZARD}/config_doxyw.cpp +${GENERATED_SRC_WIZARD}/config_doxyw.l.h ${GENERATED_SRC_WIZARD}/configdoc.cpp ${doxywizard_MOC} ${doxywizard_RESOURCES_RCC} |