Kylin/QtComponets/CMakeLists.txt
2023-12-03 23:42:58 +08:00

18 lines
384 B
CMake

find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Gui)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Gui)
set(CMAKE_AUTOMOC ON)
add_library(QtComponets
AsyncEvent.h
QClassStdStream.h QClassStdStream.cpp
)
target_include_directories(QtComponets
INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}
)
target_link_libraries(QtComponets
PUBLIC Qt${QT_VERSION_MAJOR}::Gui
)