summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/Autogen/CMP0151-common.cmake
diff options
context:
space:
mode:
authorOrkun Tokdemir <ilhanorkuntokdemir@gmail.com>2023-04-27 09:28:30 (GMT)
committerBrad King <brad.king@kitware.com>2023-05-03 13:03:46 (GMT)
commit7bf4e3009000b0ab576f364abc779e9a1599af08 (patch)
treebcdca570fc94f317746a03adf9b54237df1ce9fd /Tests/RunCMake/Autogen/CMP0151-common.cmake
parent033dc7ee2f02b0ebdfd1bc4edbcb24d1fc8c4152 (diff)
downloadCMake-7bf4e3009000b0ab576f364abc779e9a1599af08.zip
CMake-7bf4e3009000b0ab576f364abc779e9a1599af08.tar.gz
CMake-7bf4e3009000b0ab576f364abc779e9a1599af08.tar.bz2
Autogen: Default AUTOGEN_USE_SYSTEM_INCLUDE to ON if it is not set
Add policy CMP0151 to preserve the old behavior by default.
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)