-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
39 lines (34 loc) · 1.1 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
cmake_minimum_required(VERSION 3.19)
project(slinty_bindy LANGUAGES CXX)
find_package(Slint QUIET)
if (NOT Slint_FOUND)
message("Slint could not be located in the CMake module search path. Downloading it from Git and building it locally")
include(FetchContent)
FetchContent_Declare(
Slint
GIT_REPOSITORY https://github.com/slint-ui/slint.git
GIT_TAG v0.2.0
SOURCE_SUBDIR api/cpp
)
FetchContent_MakeAvailable(Slint)
endif (NOT Slint_FOUND)
find_package(KDBindings QUIET)
if (NOT KDBindings_FOUND)
message("KDBindings could not be located in the CMake module search path. Downloading it from Git and building it locally")
include(FetchContent)
FetchContent_Declare(
KDBindings
GIT_REPOSITORY https://github.com/KDAB/KDBindings
GIT_TAG main
)
FetchContent_MakeAvailable(KDBindings)
endif (NOT KDBindings_FOUND)
add_executable(slinty_bindy
src/main.cpp
src/backend_controller.cpp
src/backend_controller.h
src/undostack_model.cpp
src/undostack_model.h
)
target_link_libraries(slinty_bindy PRIVATE Slint::Slint KDAB::KDBindings)
slint_target_sources(slinty_bindy ui/appwindow.slint)