summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/Autogen/CMP0151-common.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-05-04 13:00:51 (GMT)
committerKitware Robot <kwrobot@kitware.com>2023-05-04 13:01:08 (GMT)
commit28dd02c3ba9dafb3df614565ec83223f61f30280 (patch)
treedac83df715fdfc46c6cf25e66ee2b59085aa89b8 /Tests/RunCMake/Autogen/CMP0151-common.cmake
parent7a4ec8d6cc3226185f4a04db7421d9414b1cada7 (diff)
parent7bf4e3009000b0ab576f364abc779e9a1599af08 (diff)
downloadCMake-28dd02c3ba9dafb3df614565ec83223f61f30280.zip
CMake-28dd02c3ba9dafb3df614565ec83223f61f30280.tar.gz
CMake-28dd02c3ba9dafb3df614565ec83223f61f30280.tar.bz2
Merge topic 'autogen-system-include'
7bf4e30090 Autogen: Default AUTOGEN_USE_SYSTEM_INCLUDE to ON if it is not set 033dc7ee2f Autogen: Add AUTOGEN_USE_SYSTEM_INCLUDE target property 8ba16db163 Tests/RunCMake: Add option for dynamic expected output Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8400
Diffstat (limited to 'Tests/RunCMake/Autogen/CMP0151-common.cmake')
-rw-r--r--Tests/RunCMake/Autogen/CMP0151-common.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/Tests/RunCMake/Autogen/CMP0151-common.cmake b/Tests/RunCMake/Autogen/CMP0151-common.cmake
new file mode 100644
index 0000000..bbefd5f
--- /dev/null
+++ b/Tests/RunCMake/Autogen/CMP0151-common.cmake
@@ -0,0 +1,10 @@
+enable_language(CXX)
+
+find_package(Qt${with_qt_version} REQUIRED COMPONENTS Core Widgets Gui)
+
+set(CMAKE_AUTOMOC ON)
+
+add_library(dummy SHARED empty.cpp)
+target_link_libraries(dummy Qt${with_qt_version}::Core
+ Qt${with_qt_version}::Widgets
+ Qt${with_qt_version}::Gui)