Kylin/Fluent/CMakeLists.txt
2024-08-23 00:04:16 +08:00

48 lines
1.0 KiB
CMake

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
)
set_source_files_properties(qml/Router.qml PROPERTIES
QT_QML_SINGLETON_TYPE TRUE
)
qt6_add_qml_module(Fluent
URI Fluent
VERSION 1.0
SOURCES
App.h App.cpp
Frameless.h Frameless.cpp
Icons.h
Rectangle.h Rectangle.cpp
Theme.h Theme.cpp
Utilities.h Utilities.cpp
QML_FILES
qml/Acrylic.qml
qml/AppBar.qml
qml/Icon.qml
qml/IconButton.qml
qml/InfoBar.qml
qml/Object.qml
qml/Router.qml
qml/Shadow.qml
qml/Text.qml
qml/Window.qml
RESOURCES
resources/noise.png
)
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
)