File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -180,25 +180,20 @@ else()
180180 set_source_files_properties (${ALL_TRANSLATION_FILES} PROPERTIES OUTPUT_LOCATION ${CMAKE_CURRENT_BINARY_DIR } )
181181 qt5_add_translation (doxywizard_QM_FILES ${ALL_TRANSLATION_FILES} )
182182 else ()
183- set (doxywizard_QM_FILES)
184183 message (STATUS "Qt Linguist tools not found, translation files will not be compiled" )
185184 endif ()
186185endif ()
187186
188- if (doxywizard_QM_FILES)
189- set (TRANSLATIONS_QRC_CONTENT "<!DOCTYPE RCC>\n <RCC version=\" 1.0\" >\n <qresource prefix=\" /translations\" >\n " )
190- foreach (qm_file ${doxywizard_QM_FILES} )
191- get_filename_component (qm_name ${qm_file} NAME )
192- string (APPEND TRANSLATIONS_QRC_CONTENT " <file>${qm_name} </file>\n " )
193- endforeach ()
194- string (APPEND TRANSLATIONS_QRC_CONTENT " </qresource>\n </RCC>\n " )
187+ set (TRANSLATIONS_QRC_CONTENT "<!DOCTYPE RCC>\n <RCC version=\" 1.0\" >\n <qresource prefix=\" /translations\" >\n " )
188+ foreach (qm_file ${doxywizard_QM_FILES} )
189+ get_filename_component (qm_name ${qm_file} NAME )
190+ string (APPEND TRANSLATIONS_QRC_CONTENT " <file>${qm_name} </file>\n " )
191+ endforeach ()
192+ string (APPEND TRANSLATIONS_QRC_CONTENT " </qresource>\n </RCC>\n " )
195193
196- file (WRITE ${CMAKE_CURRENT_BINARY_DIR } /translations.qrc "${TRANSLATIONS_QRC_CONTENT} " )
194+ file (WRITE ${CMAKE_CURRENT_BINARY_DIR } /translations.qrc "${TRANSLATIONS_QRC_CONTENT} " )
197195
198- qt_add_resources (doxywizard_TRANSLATION_RESOURCES ${CMAKE_CURRENT_BINARY_DIR } /translations.qrc )
199- else ()
200- set (doxywizard_TRANSLATION_RESOURCES)
201- endif ()
196+ qt_add_resources (doxywizard_TRANSLATION_RESOURCES ${CMAKE_CURRENT_BINARY_DIR } /translations.qrc )
202197
203198add_executable (doxywizard WIN32
204199config_msg.cpp
You can’t perform that action at this time.
0 commit comments