summaryrefslogtreecommitdiffstats
path: root/Tests/QtAutogen/RccSkipSource/CMakeLists.txt
blob: 42232744fbc4d03d1588c7ef2fe2e74c695ec0f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
cmake_minimum_required(VERSION 3.10)
project(RccSkipSource)
include("../AutogenCoreTest.cmake")

# Test for SKIP_AUTORCC and SKIP_AUTOGEN on an AUTORCC enabled target
set(skipRccSources
  skipRcc.cpp
  skipRccBad1.qrc
  skipRccBad2.qrc
  skipRccGood.qrc
)
set_property(SOURCE skipRccBad1.qrc PROPERTY SKIP_AUTORCC ON)
set_property(SOURCE skipRccBad2.qrc PROPERTY SKIP_AUTOGEN ON)
# AUTORCC enabled
add_executable(skipRccA ${skipRccSources})
set_property(TARGET skipRccA PROPERTY AUTORCC ON)
target_link_libraries(skipRccA ${QT_LIBRARIES})
# AUTORCC, AUTOUIC and AUTOMOC enabled
add_executable(skipRccB ${skipRccSources})
set_property(TARGET skipRccB PROPERTY AUTORCC ON)
set_property(TARGET skipRccB PROPERTY AUTOUIC ON)
set_property(TARGET skipRccB PROPERTY AUTOMOC ON)
target_link_libraries(skipRccB ${QT_LIBRARIES})