2024-08-31 04:13:21 +08:00
|
|
|
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Gui Quick QuickControls2)
|
|
|
|
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Gui Quick QuickControls2)
|
2024-08-20 23:58:02 +08:00
|
|
|
|
|
|
|
qt_standard_project_setup(REQUIRES 6.5)
|
|
|
|
|
|
|
|
add_library(Fluent
|
|
|
|
AsyncEvent.h
|
|
|
|
QClassStdStream.h QClassStdStream.cpp
|
|
|
|
)
|
|
|
|
|
2024-08-21 23:26:43 +08:00
|
|
|
set_source_files_properties(qml/Router.qml PROPERTIES
|
|
|
|
QT_QML_SINGLETON_TYPE TRUE
|
|
|
|
)
|
|
|
|
|
|
|
|
qt6_add_qml_module(Fluent
|
2024-08-20 23:58:02 +08:00
|
|
|
URI Fluent
|
|
|
|
VERSION 1.0
|
|
|
|
SOURCES
|
2024-08-31 04:13:21 +08:00
|
|
|
AccentColor.h AccentColor.cpp
|
2024-08-21 23:26:43 +08:00
|
|
|
App.h App.cpp
|
2024-08-31 04:13:21 +08:00
|
|
|
CircularReveal.h CircularReveal.cpp
|
|
|
|
Colors.h Colors.cpp
|
2024-08-21 23:26:43 +08:00
|
|
|
Frameless.h Frameless.cpp
|
|
|
|
Icons.h
|
2024-08-20 23:58:02 +08:00
|
|
|
Rectangle.h Rectangle.cpp
|
2024-08-31 04:13:21 +08:00
|
|
|
TextStyle.h TextStyle.cpp
|
2024-08-21 23:26:43 +08:00
|
|
|
Theme.h Theme.cpp
|
2024-08-23 00:04:16 +08:00
|
|
|
Utilities.h Utilities.cpp
|
2024-08-21 23:26:43 +08:00
|
|
|
QML_FILES
|
2024-08-23 00:04:16 +08:00
|
|
|
qml/Acrylic.qml
|
2024-08-21 23:26:43 +08:00
|
|
|
qml/AppBar.qml
|
2024-08-31 04:13:21 +08:00
|
|
|
qml/Button.qml
|
|
|
|
qml/ContentDialog.qml
|
|
|
|
qml/ControlBackground.qml
|
|
|
|
qml/FilledButton.qml
|
|
|
|
qml/FocusRectangle.qml
|
2024-08-23 00:04:16 +08:00
|
|
|
qml/Icon.qml
|
2024-08-21 23:26:43 +08:00
|
|
|
qml/IconButton.qml
|
2024-08-31 04:13:21 +08:00
|
|
|
qml/ImageButton.qml
|
2024-08-23 00:04:16 +08:00
|
|
|
qml/InfoBar.qml
|
2024-08-31 04:13:21 +08:00
|
|
|
qml/Loader.qml
|
2024-08-23 00:04:16 +08:00
|
|
|
qml/Object.qml
|
2024-08-31 04:13:21 +08:00
|
|
|
qml/Popup.qml
|
|
|
|
qml/ProgressRing.qml
|
2024-08-21 23:26:43 +08:00
|
|
|
qml/Router.qml
|
2024-08-31 04:13:21 +08:00
|
|
|
qml/ScrollBar.qml
|
2024-08-23 00:04:16 +08:00
|
|
|
qml/Shadow.qml
|
2024-08-21 23:26:43 +08:00
|
|
|
qml/Text.qml
|
2024-08-31 04:13:21 +08:00
|
|
|
qml/Tooltip.qml
|
2024-08-21 23:26:43 +08:00
|
|
|
qml/Window.qml
|
2024-08-23 00:04:16 +08:00
|
|
|
RESOURCES
|
|
|
|
resources/noise.png
|
2024-08-31 04:13:21 +08:00
|
|
|
resources/FluentIcons.ttf
|
2024-08-20 23:58:02 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
target_include_directories(Fluent
|
|
|
|
INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(Fluent
|
|
|
|
PUBLIC Qt${QT_VERSION_MAJOR}::Gui
|
|
|
|
PRIVATE Qt${QT_VERSION_MAJOR}::Quick
|
2024-08-31 04:13:21 +08:00
|
|
|
INTERFACE Qt${QT_VERSION_MAJOR}::QuickControls2
|
2024-08-20 23:58:02 +08:00
|
|
|
)
|