Kylin/QtComponets/CMakeLists.txt

18 lines
384 B
CMake
Raw Normal View History

2023-12-03 23:42:58 +08:00
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Gui)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Gui)
2023-08-13 15:05:35 +08:00
set(CMAKE_AUTOMOC ON)
add_library(QtComponets
2023-08-13 15:12:18 +08:00
AsyncEvent.h
2023-08-13 15:05:35 +08:00
QClassStdStream.h QClassStdStream.cpp
)
target_include_directories(QtComponets
INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}
)
target_link_libraries(QtComponets
2023-12-03 23:42:58 +08:00
PUBLIC Qt${QT_VERSION_MAJOR}::Gui
)