find_package(Qt6 COMPONENTS Gui REQUIRED) 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 Qt6::Gui )