diff options
author | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2017-12-26 19:08:00 +0200 |
---|---|---|
committer | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2017-12-26 19:08:00 +0200 |
commit | 155a9e828defcf350af8df1f79694b01daf6ab5d (patch) | |
tree | e8a6540d7d3bd657a34513c81796b2a6f325acf0 /CMakeLists.txt | |
parent | Add date separator in the timeline (diff) | |
download | nheko-155a9e828defcf350af8df1f79694b01daf6ab5d.tar.xz |
Add deb and rpm packages on releases
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 88750b7d..3085cc76 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -291,12 +291,15 @@ add_custom_target(LANG_QRC ALL DEPENDS ${QM_SRC}) # Generate a qrc file for the translations set(_qrc ${CMAKE_CURRENT_BINARY_DIR}/translations.qrc) -file(WRITE ${_qrc} "<RCC> <qresource prefix=\"/translations\">") -foreach(_lang ${QM_SRC}) - get_filename_component(_filename ${_lang} NAME) - file(APPEND ${_qrc} "<file>${_filename}</file>") -endforeach(_lang) -file(APPEND ${_qrc} "</qresource> </RCC>") + +if(NOT EXISTS ${_qrc}) + file(WRITE ${_qrc} "<RCC> <qresource prefix=\"/translations\">") + foreach(_lang ${QM_SRC}) + get_filename_component(_filename ${_lang} NAME) + file(APPEND ${_qrc} "<file>${_filename}</file>") + endforeach(_lang) + file(APPEND ${_qrc} "</qresource> </RCC>") +endif() qt5_add_resources(LANG_QRC ${_qrc}) qt5_add_resources(QRC resources/res.qrc) |