Warning, /plasma/drkonqi/src/coredump/launcher/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 # SPDX-License-Identifier: BSD-3-Clause
0002 # SPDX-FileCopyrightText: 2019-2022 Harald Sitter <sitter@kde.org>
0003 
0004 add_executable(drkonqi-coredump-launcher main.cpp)
0005 target_link_libraries(drkonqi-coredump-launcher Qt::Core KF6::ConfigCore drkonqi-coredump)
0006 target_compile_options(
0007     drkonqi-coredump-launcher
0008     PRIVATE
0009         -DKDE_INSTALL_FULL_LIBEXECDIR=\"${KDE_INSTALL_FULL_LIBEXECDIR}\"
0010         -DKDE_KDE_INSTALL_PLUGINDIR=\"${KDE_INSTALL_PLUGINDIR}\"
0011 )
0012 install(TARGETS drkonqi-coredump-launcher DESTINATION ${KDE_INSTALL_LIBEXECDIR})
0013 
0014 configure_file(drkonqi-coredump-launcher@.service.cmake ${CMAKE_CURRENT_BINARY_DIR}/drkonqi-coredump-launcher@.service)
0015 install(
0016     FILES drkonqi-coredump-launcher.socket ${CMAKE_CURRENT_BINARY_DIR}/drkonqi-coredump-launcher@.service
0017     DESTINATION ${KDE_INSTALL_SYSTEMDUSERUNITDIR}
0018 )
0019 install(CODE "
0020     include(${CMAKE_SOURCE_DIR}/cmake/SystemctlEnable.cmake)
0021     systemctl_enable(drkonqi-coredump-launcher.socket sockets.target ${KDE_INSTALL_FULL_SYSTEMDUSERUNITDIR})
0022 ")
0023 
0024 # The reason this is a plugin is so the main exe doesn't need to link against kio and knotifications needlessly.
0025 add_library(KDECoredumpNotifierTruck MODULE NotifierTruck.cpp NotifierTruck.h)
0026 target_link_libraries(KDECoredumpNotifierTruck Qt::Core KF6::Notifications KF6::KIOGui drkonqi-coredump)
0027 install(TARGETS KDECoredumpNotifierTruck DESTINATION ${KDE_INSTALL_PLUGINDIR}/drkonqi/)