diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2017-02-19 16:24:30 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-02-21 15:38:50 (GMT) |
commit | 8b13a52c4964b09f663e462af7882cbd01b8202a (patch) | |
tree | 3ab49030cc13fdc59122144d84dc856d28629659 /Tests/QtAutogen | |
parent | 9d1db7d7c3696108fd0fa1162893076d9a59b652 (diff) | |
download | CMake-8b13a52c4964b09f663e462af7882cbd01b8202a.zip CMake-8b13a52c4964b09f663e462af7882cbd01b8202a.tar.gz CMake-8b13a52c4964b09f663e462af7882cbd01b8202a.tar.bz2 |
Autogen: Tests: Set different compression levels in rcc test
Diffstat (limited to 'Tests/QtAutogen')
-rw-r--r-- | Tests/QtAutogen/sameName/CMakeLists.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Tests/QtAutogen/sameName/CMakeLists.txt b/Tests/QtAutogen/sameName/CMakeLists.txt index 9e47a3e..4d2dcd9 100644 --- a/Tests/QtAutogen/sameName/CMakeLists.txt +++ b/Tests/QtAutogen/sameName/CMakeLists.txt @@ -18,3 +18,14 @@ add_executable(sameName ) target_link_libraries(sameName ${QT_LIBRARIES}) set_target_properties(sameName PROPERTIES AUTOMOC TRUE AUTORCC TRUE) + +# Set different compression levels +if (QT_TEST_VERSION STREQUAL 4) + set(rccCompress "-compress") +else() + set(rccCompress "--compress") +endif() +set_target_properties(sameName PROPERTIES AUTORCC_OPTIONS "${rccCompress};0" ) +set_source_files_properties(aaa/data.qrc PROPERTIES AUTORCC_OPTIONS "${rccCompress};1" ) +set_source_files_properties(bbb/data.qrc PROPERTIES AUTORCC_OPTIONS "${rccCompress};2" ) +set_source_files_properties(ccc/data.qrc PROPERTIES AUTORCC_OPTIONS "${rccCompress};3" ) |