Warning, /utilities/kdebugsettings/src/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 # SPDX-FileCopyrightText: 2015-2022 Laurent Montel <montel@kde.org>
0002 # SPDX-License-Identifier: BSD-3-Clause
0003 include_directories(${CMAKE_BINARY_DIR})
0004 
0005 add_library(libkdebugsettings SHARED)
0006 
0007 ecm_qt_declare_logging_category(libkdebugsettings HEADER kdebugsettings_debug.h IDENTIFIER KDEBUGSETTINGS_LOG CATEGORY_NAME log_kdebugsettings DESCRIPTION "kdebugsettings" EXPORT KDEBUGSETTINGS)
0008 target_sources(libkdebugsettings PRIVATE
0009     kdebugsettingsloadingcategories.cpp
0010     kdeloggingcategory.cpp
0011     renamecategory.cpp
0012     loggingcategory.cpp
0013     kdebugsettingsutil.cpp
0014     loadcategoriesjob.cpp
0015     saverulesjob.cpp
0016     categorytypecombobox.cpp
0017     environmentplaintextedit.cpp
0018     changedebugmodejob.cpp
0019     loadgroupmenu.cpp
0020 
0021     kdebugsettingsdialog.cpp
0022     customdebugsettingspage.cpp
0023     kdeapplicationdebugsettingpage.cpp
0024 
0025     configurecustomsettingdialog.cpp
0026     configurecustomsettingwidget.cpp
0027     environmentsettingsrulespage.cpp
0028     kdeapplicationtreelistwidget.cpp
0029     categorywarning.cpp
0030     loadtoolbutton.cpp
0031     savetoolbutton.cpp
0032     groupmanagementdialog.cpp
0033     groupmanagementwidget.cpp
0034     environmentplaintextedit.h
0035     renamecategory.h
0036     configurecustomsettingwidget.h
0037     kdeapplicationtreelistwidget.h
0038     saverulesjob.h
0039     kdeloggingcategory.h
0040     loadtoolbutton.h
0041     groupmanagementwidget.h
0042     loadgroupmenu.h
0043     environmentsettingsrulespage.h
0044     groupmanagementdialog.h
0045     categorytypecombobox.h
0046     libkdebugsettings_private_export.h
0047     loadcategoriesjob.h
0048     customdebugsettingspage.h
0049     loggingcategory.h
0050     categorywarning.h
0051     kdebugsettingsdialog.h
0052     kdeapplicationdebugsettingpage.h
0053     savetoolbutton.h
0054     kdebugsettingsloadingcategories.h
0055     changedebugmodejob.h
0056     kdebugsettingsutil.h
0057     configurecustomsettingdialog.h
0058     )
0059 
0060 if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
0061     set_target_properties(libkdebugsettings PROPERTIES UNITY_BUILD ON)
0062 endif()
0063 generate_export_header(libkdebugsettings BASE_NAME libkdebugsettings)
0064 target_link_libraries(libkdebugsettings
0065     Qt::Core
0066     KF5::I18n
0067     Qt::Widgets
0068     KF5::WidgetsAddons
0069     KF5::ItemViews
0070     KF5::ConfigCore
0071     KF5::Completion
0072     KF5::ConfigGui
0073 )
0074 
0075 set_target_properties(libkdebugsettings
0076     PROPERTIES OUTPUT_NAME kdebugsettings VERSION ${KDEBUGSETTINGS_LIB_VERSION} SOVERSION ${KDEBUGSETTINGS_LIB_SOVERSION}
0077     )
0078 
0079 install(TARGETS libkdebugsettings ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} LIBRARY NAMELINK_SKIP)
0080 
0081 
0082 add_executable(kdebugsettings main.cpp)
0083 if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
0084     set_target_properties(kdebugsettings PROPERTIES UNITY_BUILD ON)
0085 endif()
0086 
0087 target_link_libraries(kdebugsettings Qt::Widgets KF5::I18n KF5::DBusAddons KF5::CoreAddons libkdebugsettings)
0088 
0089 install(TARGETS kdebugsettings  ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )
0090 
0091 
0092 ########### install files ###############
0093 
0094 install( PROGRAMS org.kde.kdebugsettings.desktop  DESTINATION  ${KDE_INSTALL_APPDIR} )
0095 install( FILES org.kde.kdebugsettings.appdata.xml DESTINATION  ${KDE_INSTALL_METAINFODIR})