set(CMAKE_AUTOMOC ON) set(CMAKE_AUTORCC ON) find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Widgets SerialPort) find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Widgets SerialPort) add_executable(Analyser Analyser.rc main.cpp CategoryLogSinkBackend.h CategoryLogSinkBackend.cpp Widget.h Widget.cpp ModuleCommunication.h ModuleCommunication.cpp PalmFeatureTableModel.h PalmFeatureTableModel.cpp ) target_link_libraries(Analyser PRIVATE QtComponets PRIVATE Encrypt PRIVATE Database PRIVATE Ws2_32 PRIVATE Qt${QT_VERSION_MAJOR}::Widgets PRIVATE Qt${QT_VERSION_MAJOR}::SerialPort )