-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
49 lines (43 loc) · 936 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
49 lines (43 loc) · 936 Bytes
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
40
41
42
43
44
45
46
47
48
49
cmake_minimum_required(VERSION 3.16)
project(Qt_QML_Sample)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
find_package(Qt6 COMPONENTS
Core
Gui
Widgets
Qml
Quick
QuickControls2
REQUIRED
)
qt_policy(SET QTP0001 NEW)
qt_policy(SET QTP0004 NEW)
add_executable(${PROJECT_NAME}
main.cpp
app/ThemeManager.cpp
app/ThemeManager.h
app/Settings.cpp
app/Settings.h
)
qt_add_qml_module(${PROJECT_NAME}
URI ${PROJECT_NAME}
VERSION 1.0
QML_FILES
ui/view/Main.qml
ui/view/Settings.qml
ui/components/MyButton.qml
ui/components/MyInput.qml
ui/components/ColorPicker.qml
)
target_link_libraries(${PROJECT_NAME}
PRIVATE
Qt::Core
Qt::Gui
Qt::Widgets
Qt::Qml
Qt::Quick
Qt::QuickControls2
)