
find_package(KF5Config ${KF5_MIN_VERSION} CONFIG)
add_feature_info("KF5Config" KF5Config_FOUND "Required for building libkscreen's switch display mode function")

add_executable(kscreen-doctor main.cpp doctor.cpp dpmsclient.cpp doctor.h dpmsclient.h)
target_link_libraries(kscreen-doctor Qt::DBus KF5::Screen KF5::WaylandClient KF5::ConfigCore)
install(TARGETS kscreen-doctor ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
