diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2015-05-16 09:05:55 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2015-05-16 09:05:55 (GMT) |
commit | edb9fdd1d2b5ac9e2651e4f63ea39f1336983e9c (patch) | |
tree | 36e6bd260d45aa8e81c796c6a723d28ac0f11d02 /addon/doxywizard/CMakeLists.txt | |
parent | 796d6585be58d1c9112422a919f49d1998dc672c (diff) | |
parent | 1dd0cf03f5bf173fa4ac3bb8279d12fff1b98eb7 (diff) | |
download | Doxygen-edb9fdd1d2b5ac9e2651e4f63ea39f1336983e9c.zip Doxygen-edb9fdd1d2b5ac9e2651e4f63ea39f1336983e9c.tar.gz Doxygen-edb9fdd1d2b5ac9e2651e4f63ea39f1336983e9c.tar.bz2 |
Merge branch 'cmake-v5' of https://github.com/groleo/doxygen into cmake
Diffstat (limited to 'addon/doxywizard/CMakeLists.txt')
-rw-r--r-- | addon/doxywizard/CMakeLists.txt | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/addon/doxywizard/CMakeLists.txt b/addon/doxywizard/CMakeLists.txt new file mode 100644 index 0000000..a432081 --- /dev/null +++ b/addon/doxywizard/CMakeLists.txt @@ -0,0 +1,55 @@ +if (build_wizard) + +include_directories( + . + ${CMAKE_SOURCE_DIR}/src + ${CMAKE_SOURCE_DIR}/qtools + ${GENERATED_SRC} +) + +add_definitions(-DQT_ARCH_X86_64 -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII) +set(QT_USE_QTXML TRUE) +find_package(Qt4 REQUIRED) +include(${QT_USE_FILE}) + +add_custom_command( +COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/src/configgen.py -wiz ${CMAKE_SOURCE_DIR}/src/config.xml > ${GENERATED_SRC}/configdoc.cpp +OUTPUT ${GENERATED_SRC}/configdoc.cpp +) +set_source_files_properties(${GENERATED_SRC}/configdoc.cpp PROPERTIES GENERATED 1) + +FLEX_TARGET(config_doxyw config_doxyw.l ${GENERATED_SRC}/config_doxyw.cpp COMPILE_FLAGS "-Pconfig_doxywYY") + +QT4_WRAP_CPP(doxywizard_MOC +doxywizard.h +expert.h +helplabel.h +inputint.h +inputbool.h +inputstring.h +inputstrlist.h +wizard.h +) + +QT4_ADD_RESOURCES(doxywizard_RESOURCES_RCC doxywizard.qrc) + +add_executable(doxywizard +doxywizard.cpp +expert.cpp +wizard.cpp +inputbool.cpp +inputstring.cpp +inputint.cpp +inputstrlist.cpp +${GENERATED_SRC}/settings.h +${GENERATED_SRC}/version.cpp +${GENERATED_SRC}/config_doxyw.cpp +${GENERATED_SRC}/configdoc.cpp +${doxywizard_MOC} +${doxywizard_RESOURCES_RCC} +) +target_link_libraries(doxywizard +qtools md5 vhdlparser ${QT_LIBRARIES} +) + +endif() |