Warning, /plasma/plasma-firewall/kcm/backends/ufw/helper/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # SPDX-License-Identifier: BSD-3-Clause 0002 # SPDX-FileCopyrightText: 2020 Tomaz Canabrava <tcanabrava@kde.org> 0003 0004 # Find includes in corresponding build directories 0005 set(CMAKE_INCLUDE_CURRENT_DIR ON) 0006 include_directories(${CMAKE_BINARY_DIR}) 0007 0008 # Instruct CMake to run moc automatically when needed. 0009 set(CMAKE_AUTOMOC ON) 0010 0011 find_package(Qt6 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS 0012 Quick 0013 ) 0014 0015 0016 find_package(KF6 ${KF6_MIN_VERSION} REQUIRED COMPONENTS 0017 I18n 0018 Auth 0019 ) 0020 0021 0022 set(ufw_plugin_helper_SRCS helper.cpp helper.h) 0023 add_executable(kde_ufw_plugin_helper ${ufw_plugin_helper_SRCS}) 0024 0025 # set_target_properties(kcm_ufw_helper PROPERTIES OUTPUT_NAME kcm_ufw_helper) 0026 target_link_libraries(kde_ufw_plugin_helper Qt::Core KF6::AuthCore KF6::I18n) 0027 0028 if (IS_ABSOLUTE "${KDE_INSTALL_LIBEXECDIR}") 0029 set(UFW_PLUGIN_HELPER_PATH ${KDE_INSTALL_LIBEXECDIR}/kde_ufw_plugin_helper.py) 0030 else() 0031 set(UFW_PLUGIN_HELPER_PATH ${CMAKE_INSTALL_PREFIX}/${KDE_INSTALL_LIBEXECDIR}/kde_ufw_plugin_helper.py) 0032 endif() 0033 configure_file(kcm_ufw_helper.py.cmake ${CMAKE_BINARY_DIR}/kde_ufw_plugin_helper.py) 0034 configure_file(ufw_helper_config.h.cmake ${CMAKE_BINARY_DIR}/ufw_helper_config.h) 0035 0036 kauth_install_actions(org.kde.ufw org.kde.ufw.actions) 0037 install(TARGETS kde_ufw_plugin_helper DESTINATION ${KAUTH_HELPER_INSTALL_DIR}) 0038 kauth_install_helper_files(kde_ufw_plugin_helper org.kde.ufw root) 0039 0040 # install(TARGETS kcm_ufw_helper DESTINATION ${KDE_INSTALL_LIBEXECDIR}) 0041 install(PROGRAMS ${CMAKE_BINARY_DIR}/kde_ufw_plugin_helper.py DESTINATION ${KDE_INSTALL_LIBEXECDIR}) 0042 0043 # configure_file(org.kde.ufw.service.cmake ${CMAKE_CURRENT_BINARY_DIR}/session/org.kde.ufw.service) 0044 # install(FILES ${CMAKE_CURRENT_BINARY_DIR}/session/org.kde.ufw.service DESTINATION ${KDE_INSTALL_DBUSSERVICEDIR}) 0045 install(FILES defaults DESTINATION ${KDE_INSTALL_DATADIR}/kcm_ufw)