Kylin/Fluent/CMakeLists.txt

48 lines
1.0 KiB
CMake
Raw Normal View History

2024-08-20 23:58:02 +08:00
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Gui Quick)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Gui Quick)
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-21 23:26:43 +08:00
App.h App.cpp
Frameless.h Frameless.cpp
Icons.h
2024-08-20 23:58:02 +08:00
Rectangle.h Rectangle.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-23 00:04:16 +08:00
qml/Icon.qml
2024-08-21 23:26:43 +08:00
qml/IconButton.qml
2024-08-23 00:04:16 +08:00
qml/InfoBar.qml
qml/Object.qml
2024-08-21 23:26:43 +08:00
qml/Router.qml
2024-08-23 00:04:16 +08:00
qml/Shadow.qml
2024-08-21 23:26:43 +08:00
qml/Text.qml
qml/Window.qml
2024-08-23 00:04:16 +08:00
RESOURCES
resources/noise.png
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
)