File tree Expand file tree Collapse file tree 1 file changed +12
-15
lines changed Expand file tree Collapse file tree 1 file changed +12
-15
lines changed Original file line number Diff line number Diff line change 1- cmake_minimum_required (VERSION 3.21 )
1+ cmake_minimum_required (VERSION 3.24 )
22project (my_application LANGUAGES CXX)
33
4- find_package (Slint QUIET )
5- if (NOT Slint_FOUND)
6- message ("Slint could not be located in the CMake module search path. Downloading it from Git and building it locally" )
7- include (FetchContent)
8- FetchContent_Declare(
9- Slint
10- GIT_REPOSITORY https://github.com/slint-ui/slint.git
11- # `release/1` will auto-upgrade to the latest Slint >= 1.0.0 and < 2.0.0
12- # `release/1.0` will auto-upgrade to the latest Slint >= 1.0.0 and < 1.1.0
13- GIT_TAG release/1
14- SOURCE_SUBDIR api/cpp
15- )
16- FetchContent_MakeAvailable(Slint)
17- endif (NOT Slint_FOUND)
4+ include (FetchContent)
5+ FetchContent_Declare(
6+ Slint
7+ GIT_REPOSITORY https://github.com/slint-ui/slint.git
8+ # `release/1` will auto-upgrade to the latest Slint >= 1.0.0 and < 2.0.0
9+ # `release/1.0` will auto-upgrade to the latest Slint >= 1.0.0 and < 1.1.0
10+ GIT_TAG release/1
11+ SOURCE_SUBDIR api/cpp
12+ FIND_PACKAGE_ARGS NAMES Slint
13+ )
14+ FetchContent_MakeAvailable(Slint)
1815
1916add_executable (my_application src/main.cpp)
2017target_link_libraries (my_application PRIVATE Slint::Slint)
You can’t perform that action at this time.
0 commit comments