diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2017-12-08 17:47:15 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2017-12-13 12:48:28 (GMT) |
commit | f11321efd11ce4958d45f4673465b5b9484f1af2 (patch) | |
tree | 129579547a4e155f4257945dedf380ba2872992a /Tests/QtAutogen/UicSkipSource/CMakeLists.txt | |
parent | 0af9da29e487f0a6c60c379f0773a68b40ce2625 (diff) | |
download | CMake-f11321efd11ce4958d45f4673465b5b9484f1af2.zip CMake-f11321efd11ce4958d45f4673465b5b9484f1af2.tar.gz CMake-f11321efd11ce4958d45f4673465b5b9484f1af2.tar.bz2 |
Autogen: Tests: Separate UicSkipSource test
Diffstat (limited to 'Tests/QtAutogen/UicSkipSource/CMakeLists.txt')
-rw-r--r-- | Tests/QtAutogen/UicSkipSource/CMakeLists.txt | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Tests/QtAutogen/UicSkipSource/CMakeLists.txt b/Tests/QtAutogen/UicSkipSource/CMakeLists.txt new file mode 100644 index 0000000..e94864d --- /dev/null +++ b/Tests/QtAutogen/UicSkipSource/CMakeLists.txt @@ -0,0 +1,22 @@ +cmake_minimum_required(VERSION 3.10) +project(UicSkipSource) +include("../AutogenTest.cmake") + +# Test for SKIP_AUTOUIC and SKIP_AUTOGEN on an AUTOUIC enabled target +set(skipUicSources + skipUic.cpp + skipUicGen.cpp + skipUicNoGen1.cpp + skipUicNoGen2.cpp +) +set_property(SOURCE skipUicNoGen1.cpp PROPERTY SKIP_AUTOUIC ON) +set_property(SOURCE skipUicNoGen2.cpp PROPERTY SKIP_AUTOGEN ON) +# AUTOUIC enabled +add_executable(skipUicA ${skipUicSources}) +set_property(TARGET skipUicA PROPERTY AUTOUIC ON) +target_link_libraries(skipUicA ${QT_LIBRARIES}) +# AUTOUIC and AUTOMOC enabled +add_executable(skipUicB ${skipUicSources}) +set_property(TARGET skipUicB PROPERTY AUTOUIC ON) +set_property(TARGET skipUicB PROPERTY AUTOMOC ON) +target_link_libraries(skipUicB ${QT_LIBRARIES}) |