cmake_minimum_required(VERSION 3.30) project(tablet-simulator) set(CMAKE_CXX_STANDARD 20) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTORCC ON) set(CMAKE_AUTOUIC ON) set(QT_MIN_VERSION 6.5) set(KF_MIN_VERSION 6.0) find_package(ECM ${KF_MIN_VERSION} REQUIRED NO_MODULE) list(APPEND CMAKE_MODULE_PATH ${ECM_MODULE_PATH}) include(KDEInstallDirs) include(ECMFindQmlModule) include(KDECMakeSettings) include(KDECompilerSettings NO_POLICY_SCOPE) include(ECMSetupVersion) include(ECMGenerateHeaders) include(ECMPoQmTools) include(KDEGitCommitHooks) include(KDEClangFormat) include(ECMQmlModule) find_package(Qt6 COMPONENTS Core Gui Qml QuickControls2 REQUIRED) find_package(KF6 ${KF_MIN_VERSION} REQUIRED COMPONENTS Kirigami CoreAddons I18n WindowSystem) pkg_check_modules(libevdev REQUIRED IMPORTED_TARGET libevdev) add_executable(tabletsimulator main.cpp devicemanager.cpp) ecm_add_qml_module(tabletsimulator URI com.redstrate.tabletsimulator VERSION 1.0) ecm_target_qml_sources(tabletsimulator SOURCES ui/Main.qml) target_link_libraries(tabletsimulator PRIVATE Qt::Core Qt::Qml Qt::Quick Qt::QuickControls2 KF6::I18n KF6::WindowSystem KF6::CoreAddons PkgConfig::libevdev )