From b8489c824570c0173efe946cfaf8cc28324f449c Mon Sep 17 00:00:00 2001 From: Jesse Qu Date: Mon, 22 Dec 2025 16:51:29 +0800 Subject: [PATCH] adjusted cmake files --- .gitignore | 1 + CMakeLists.txt | 2 +- QtADS/CMakeLists.txt | 2 +- QtADS/demo/CMakeLists.txt | 2 +- QtADS/examples/CMakeLists.txt | 2 +- QtADS/examples/autohide/CMakeLists.txt | 2 +- QtADS/examples/centralwidget/CMakeLists.txt | 2 +- QtADS/examples/deleteonclose/CMakeLists.txt | 2 +- QtADS/examples/dockindock/CMakeLists.txt | 2 +- QtADS/examples/emptydockarea/CMakeLists.txt | 2 +- QtADS/examples/hideshow/CMakeLists.txt | 2 +- QtADS/examples/sidebar/CMakeLists.txt | 2 +- QtADS/examples/simple/CMakeLists.txt | 2 +- QtADS/src/CMakeLists.txt | 2 +- 14 files changed, 14 insertions(+), 13 deletions(-) diff --git a/.gitignore b/.gitignore index 183556c..7d61272 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ build/ # ---> CMake CMakeLists.txt.user +CMakeUserPresets.json CMakeCache.txt CMakeFiles CMakeScripts diff --git a/CMakeLists.txt b/CMakeLists.txt index 06cba8b..6624577 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.5...4.3) project(GridFrame LANGUAGES CXX VERSION 1.0) diff --git a/QtADS/CMakeLists.txt b/QtADS/CMakeLists.txt index 29c0719..7d9461b 100644 --- a/QtADS/CMakeLists.txt +++ b/QtADS/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.5...4.3) if (POLICY CMP0091) cmake_policy(SET CMP0091 NEW) diff --git a/QtADS/demo/CMakeLists.txt b/QtADS/demo/CMakeLists.txt index 86a7212..cea804c 100644 --- a/QtADS/demo/CMakeLists.txt +++ b/QtADS/demo/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.5...4.3) project(ads_demo VERSION ${VERSION_SHORT}) find_package(QT NAMES Qt6 Qt5 COMPONENTS Core REQUIRED) diff --git a/QtADS/examples/CMakeLists.txt b/QtADS/examples/CMakeLists.txt index ba2a064..95dad24 100644 --- a/QtADS/examples/CMakeLists.txt +++ b/QtADS/examples/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.5...4.3) project(QtADSExamples LANGUAGES CXX VERSION ${VERSION_SHORT}) add_subdirectory(simple) add_subdirectory(hideshow) diff --git a/QtADS/examples/autohide/CMakeLists.txt b/QtADS/examples/autohide/CMakeLists.txt index 3369ade..40fd39f 100644 --- a/QtADS/examples/autohide/CMakeLists.txt +++ b/QtADS/examples/autohide/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.5...4.3) project(ads_example_autohide VERSION ${VERSION_SHORT}) find_package(QT NAMES Qt6 Qt5 COMPONENTS Core REQUIRED) find_package(Qt${QT_VERSION_MAJOR} 5.5 COMPONENTS Core Gui Widgets REQUIRED) diff --git a/QtADS/examples/centralwidget/CMakeLists.txt b/QtADS/examples/centralwidget/CMakeLists.txt index 7f44e41..e939a8d 100644 --- a/QtADS/examples/centralwidget/CMakeLists.txt +++ b/QtADS/examples/centralwidget/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.5...4.3) project(ads_example_centralwidget VERSION ${VERSION_SHORT}) find_package(QT NAMES Qt6 Qt5 COMPONENTS Core REQUIRED) find_package(Qt${QT_VERSION_MAJOR} 5.5 COMPONENTS Core Gui Widgets REQUIRED) diff --git a/QtADS/examples/deleteonclose/CMakeLists.txt b/QtADS/examples/deleteonclose/CMakeLists.txt index d4f8170..45500cf 100644 --- a/QtADS/examples/deleteonclose/CMakeLists.txt +++ b/QtADS/examples/deleteonclose/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.5...4.3) project(ads_example_deleteonclose VERSION ${VERSION_SHORT}) find_package(QT NAMES Qt6 Qt5 COMPONENTS Core REQUIRED) find_package(Qt${QT_VERSION_MAJOR} 5.5 COMPONENTS Core Gui Widgets REQUIRED) diff --git a/QtADS/examples/dockindock/CMakeLists.txt b/QtADS/examples/dockindock/CMakeLists.txt index fa20a7d..4804d84 100644 --- a/QtADS/examples/dockindock/CMakeLists.txt +++ b/QtADS/examples/dockindock/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.5...4.3) project(ads_example_dockindock VERSION ${VERSION_SHORT}) find_package(QT NAMES Qt6 Qt5 COMPONENTS Core REQUIRED) find_package(Qt${QT_VERSION_MAJOR} 5.5 COMPONENTS Core Gui Widgets REQUIRED) diff --git a/QtADS/examples/emptydockarea/CMakeLists.txt b/QtADS/examples/emptydockarea/CMakeLists.txt index bf9cd4b..3bf4a82 100644 --- a/QtADS/examples/emptydockarea/CMakeLists.txt +++ b/QtADS/examples/emptydockarea/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.5...4.3) project(ads_example_centralwidget VERSION ${VERSION_SHORT}) find_package(QT NAMES Qt6 Qt5 COMPONENTS Core REQUIRED) find_package(Qt${QT_VERSION_MAJOR} 5.5 COMPONENTS Core Gui Widgets REQUIRED) diff --git a/QtADS/examples/hideshow/CMakeLists.txt b/QtADS/examples/hideshow/CMakeLists.txt index 9b29ef4..0a98fbe 100644 --- a/QtADS/examples/hideshow/CMakeLists.txt +++ b/QtADS/examples/hideshow/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.5...4.3) project(ads_example_hideshow VERSION ${VERSION_SHORT}) find_package(QT NAMES Qt6 Qt5 COMPONENTS Core REQUIRED) find_package(Qt${QT_VERSION_MAJOR} 5.5 COMPONENTS Core Gui Widgets REQUIRED) diff --git a/QtADS/examples/sidebar/CMakeLists.txt b/QtADS/examples/sidebar/CMakeLists.txt index d294e5d..335484c 100644 --- a/QtADS/examples/sidebar/CMakeLists.txt +++ b/QtADS/examples/sidebar/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.5...4.3) project(ads_example_sidebar VERSION ${VERSION_SHORT}) find_package(QT NAMES Qt6 Qt5 COMPONENTS Core REQUIRED) find_package(Qt${QT_VERSION_MAJOR} 5.5 COMPONENTS Core Gui Widgets REQUIRED) diff --git a/QtADS/examples/simple/CMakeLists.txt b/QtADS/examples/simple/CMakeLists.txt index 705a208..9f395d3 100644 --- a/QtADS/examples/simple/CMakeLists.txt +++ b/QtADS/examples/simple/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.5...4.3) project(ads_example_simple VERSION ${VERSION_SHORT}) find_package(QT NAMES Qt6 Qt5 COMPONENTS Core REQUIRED) find_package(Qt${QT_VERSION_MAJOR} 5.5 COMPONENTS Core Gui Widgets REQUIRED) diff --git a/QtADS/src/CMakeLists.txt b/QtADS/src/CMakeLists.txt index 9690be7..5af9037 100644 --- a/QtADS/src/CMakeLists.txt +++ b/QtADS/src/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.5...4.3) project(QtAdvancedDockingSystem LANGUAGES CXX VERSION ${VERSION_SHORT}) include(GNUInstallDirs) if (${QT_VERSION_MAJOR})