Skip to content

Commit

Permalink
cmake: Bump minimal cmake version to 3.23
Browse files Browse the repository at this point in the history
  • Loading branch information
hunger committed Mar 27, 2023
1 parent a45596b commit 52a70b7
Show file tree
Hide file tree
Showing 18 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright © SixtyFPS GmbH <info@slint-ui.com>
# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial

cmake_minimum_required(VERSION 3.19)
cmake_minimum_required(VERSION 3.23)

project(Slint LANGUAGES CXX)

Expand Down
2 changes: 1 addition & 1 deletion api/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright © SixtyFPS GmbH <info@slint-ui.com>
# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial

cmake_minimum_required(VERSION 3.19)
cmake_minimum_required(VERSION 3.23)
project(Slint HOMEPAGE_URL "https://slint-ui.com/" LANGUAGES CXX)

include(FeatureSummary)
Expand Down
2 changes: 1 addition & 1 deletion api/cpp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ First you need to install the prerequisites:

* Install Rust by following the [Rust Getting Started Guide](https://www.rust-lang.org/learn/get-started). Once this is done,
you should have the ```rustc``` compiler and the ```cargo``` build system installed in your path.
* **[cmake](https://cmake.org/download/)** (3.21 or newer)
* **[cmake](https://cmake.org/download/)** (3.23 or newer)
* A C++ compiler that supports C++20 (e.g., **MSVC 2019 16.6** on Windows)

You can include Slint in your CMake project using CMake's `FetchContent` feature. Insert the following snippet into your
Expand Down
2 changes: 1 addition & 1 deletion api/cpp/docs/cmake.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ First you need to install the prerequisites:
* Install Rust by following the [Rust Getting Started Guide](https://www.rust-lang.org/learn/get-started). If you already
have Rust installed, make sure that it's at least version 1.60 or newer. You can check which version you have installed
by running `rustc --version`. Once this is done, you should have the ```rustc``` compiler and the ```cargo``` build system installed in your path.
* **[cmake](https://cmake.org/download/)** (3.21 or newer)
* **[cmake](https://cmake.org/download/)** (3.23 or newer)
* A C++ compiler that supports C++20 (e.g., **MSVC 2019 16.6** on Windows)

You can include Slint into your CMake project using CMake's
Expand Down
2 changes: 1 addition & 1 deletion api/cpp/docs/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ target in two steps:
A minimal CMake `CMakeLists.txt` file looks like this:

```cmake
cmake_minimum_required(VERSION 3.21)
cmake_minimum_required(VERSION 3.23)
project(my_application LANGUAGES CXX)
# Note: Use find_package(Slint) instead of the following three commands,
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial/cpp/src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright © SixtyFPS GmbH <info@slint-ui.com>
# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial

cmake_minimum_required(VERSION 3.14)
cmake_minimum_required(VERSION 3.23)

if (NOT TARGET Slint::Slint)
find_package(Slint REQUIRED)
Expand Down
4 changes: 2 additions & 2 deletions docs/tutorial/cpp/src/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ In a new directory, we create a new `CMakeLists.txt` file.

```cmake
# CMakeLists.txt
cmake_minimum_required(VERSION 3.21)
cmake_minimum_required(VERSION 3.23)
project(memory LANGUAGES CXX)
include(FetchContent)
Expand Down Expand Up @@ -79,6 +79,6 @@ memory_game
Feel free to use your favorite IDE for this purpose, or use out-of-tree build, or Ninja, ...
We just keep it simple here for the purpose of this blog.

*Note*: When configuring with CMake, the FetchContent module will fetch the source code of Slint via git.
_Note_: When configuring with CMake, the FetchContent module will fetch the source code of Slint via git.
this may take some time. When building for the first time, the first thing that need to be build
is the Slint runtime and compiler, this can take a few minutes.
2 changes: 1 addition & 1 deletion examples/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright © SixtyFPS GmbH <info@slint-ui.com>
# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial
cmake_minimum_required(VERSION 3.19)
cmake_minimum_required(VERSION 3.23)
project(SlintExamples LANGUAGES CXX)

list(PREPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../cmake")
Expand Down
2 changes: 1 addition & 1 deletion examples/carousel/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright © SixtyFPS GmbH <info@slint-ui.com>
# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial

cmake_minimum_required(VERSION 3.14)
cmake_minimum_required(VERSION 3.23)
project(slint_cpp_carousel LANGUAGES CXX)

if (NOT TARGET Slint::Slint)
Expand Down
2 changes: 1 addition & 1 deletion examples/gallery/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright © SixtyFPS GmbH <info@slint-ui.com>
# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial

cmake_minimum_required(VERSION 3.14)
cmake_minimum_required(VERSION 3.23)
project(slint_cpp_gallery LANGUAGES CXX)

if (NOT TARGET Slint::Slint)
Expand Down
2 changes: 1 addition & 1 deletion examples/iot-dashboard/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright © SixtyFPS GmbH <info@slint-ui.com>
# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial

cmake_minimum_required(VERSION 3.14)
cmake_minimum_required(VERSION 3.23)
project(slint_cpp_iot_dashboard LANGUAGES CXX)

if (NOT TARGET Slint::Slint)
Expand Down
2 changes: 1 addition & 1 deletion examples/memory/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright © SixtyFPS GmbH <info@slint-ui.com>
# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial

cmake_minimum_required(VERSION 3.19)
cmake_minimum_required(VERSION 3.23)
project(memory LANGUAGES CXX)

if (NOT TARGET Slint::Slint)
Expand Down
2 changes: 1 addition & 1 deletion examples/opengl_underlay/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright © SixtyFPS GmbH <info@slint-ui.com>
# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial

cmake_minimum_required(VERSION 3.14)
cmake_minimum_required(VERSION 3.23)
project(opengl_cpp_underlay LANGUAGES CXX)

if (NOT TARGET Slint::Slint)
Expand Down
2 changes: 1 addition & 1 deletion examples/printerdemo/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright © SixtyFPS GmbH <info@slint-ui.com>
# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial

cmake_minimum_required(VERSION 3.14)
cmake_minimum_required(VERSION 3.23)
project(slint_cpp_printer_demo LANGUAGES CXX)

if (NOT TARGET Slint::Slint)
Expand Down
2 changes: 1 addition & 1 deletion examples/printerdemo/cpp_interpreted/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright © SixtyFPS GmbH <info@slint-ui.com>
# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial

cmake_minimum_required(VERSION 3.14)
cmake_minimum_required(VERSION 3.23)
project(slint_cpp_interpreter_printer_demo LANGUAGES CXX)

if (NOT TARGET Slint::Slint)
Expand Down
2 changes: 1 addition & 1 deletion examples/printerdemo_old/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright © SixtyFPS GmbH <info@slint-ui.com>
# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial

cmake_minimum_required(VERSION 3.14)
cmake_minimum_required(VERSION 3.23)

if (NOT TARGET Slint::Slint)
find_package(Slint REQUIRED)
Expand Down
2 changes: 1 addition & 1 deletion examples/qt_viewer/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright © SixtyFPS GmbH <info@slint-ui.com>
# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial

cmake_minimum_required(VERSION 3.14)
cmake_minimum_required(VERSION 3.23)
project(qt_viewer LANGUAGES CXX)

if (NOT TARGET Slint::Slint)
Expand Down
2 changes: 1 addition & 1 deletion examples/todo/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright © SixtyFPS GmbH <info@slint-ui.com>
# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial

cmake_minimum_required(VERSION 3.14)
cmake_minimum_required(VERSION 3.23)
project(slint_cpp_todo LANGUAGES CXX)

if (NOT TARGET Slint::Slint)
Expand Down

0 comments on commit 52a70b7

Please sign in to comment.