summaryrefslogtreecommitdiffstats
path: root/Tests/QtAutogen
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-04-21 14:42:08 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-04-21 14:42:17 (GMT)
commit5a8b37e53b435554ad81d20152cd23ce311adb9b (patch)
tree758439ee4321306bc15f2dfced2ede00624bfa30 /Tests/QtAutogen
parent57872e6d44ca4ea639ef5a6a712be4dd0f12710e (diff)
parentb84f1e61595d4c9344a13fa4bf76d8a258757f1b (diff)
downloadCMake-5a8b37e53b435554ad81d20152cd23ce311adb9b.zip
CMake-5a8b37e53b435554ad81d20152cd23ce311adb9b.tar.gz
CMake-5a8b37e53b435554ad81d20152cd23ce311adb9b.tar.bz2
Merge topic 'autogen-clear-early-source-cache'
b84f1e6159 Autogen: Restore mocs_compilation in OBJECT libraries Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6024
Diffstat (limited to 'Tests/QtAutogen')
-rw-r--r--Tests/QtAutogen/ObjectLibrary/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/QtAutogen/ObjectLibrary/CMakeLists.txt b/Tests/QtAutogen/ObjectLibrary/CMakeLists.txt
index ec204e7..e8af6c9 100644
--- a/Tests/QtAutogen/ObjectLibrary/CMakeLists.txt
+++ b/Tests/QtAutogen/ObjectLibrary/CMakeLists.txt
@@ -16,3 +16,8 @@ target_compile_features(b PRIVATE ${QT_COMPILE_FEATURES})
# Executable with OBJECT library generator expressions
add_executable(someProgram main.cpp $<TARGET_OBJECTS:a> $<TARGET_OBJECTS:b>)
target_link_libraries(someProgram ${QT_LIBRARIES})
+
+# Executable without its own AUTOMOC.
+add_executable(someProgram2 main.cpp)
+target_link_libraries(someProgram2 PRIVATE a b ${QT_LIBRARIES})
+set_property(TARGET someProgram2 PROPERTY AUTOMOC OFF)