Kylin/Fluent/CMakeLists.txt
2024-08-20 23:58:02 +08:00

26 lines
545 B
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
)
qt_add_qml_module(Fluent
URI Fluent
VERSION 1.0
SOURCES
Rectangle.h Rectangle.cpp
)
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
)