1 cmake_minimum_required(VERSION 3.16.0)
3 include("../AutogenGuiTest.cmake")
5 # Process .hh headers in AUTOMOC
6 cmake_policy(SET CMP0100 NEW)
8 # Test AUTOMOC and AUTORCC on source files with the same name
9 # but in different subdirectories
11 add_executable(sameName
32 target_link_libraries(sameName ${QT_LIBRARIES})
33 set_target_properties(sameName PROPERTIES
39 # Set different compression levels
40 if (QT_TEST_VERSION EQUAL 4)
41 set(rccCompress "-compress")
43 set(rccCompress "--compress")
45 set_target_properties(sameName PROPERTIES AUTORCC_OPTIONS "${rccCompress};1" )
46 set_source_files_properties(aaa/data.qrc PROPERTIES AUTORCC_OPTIONS "${rccCompress};2" )
47 set_source_files_properties(bbb/data.qrc PROPERTIES AUTORCC_OPTIONS "${rccCompress};3" )
48 set_source_files_properties(ccc/data.qrc PROPERTIES AUTORCC_OPTIONS "${rccCompress};4" )