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

0001 # SPDX-FileCopyrightText: 2015-2023 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     KF${KF_MAJOR_VERSION}::I18n
0067     Qt::Widgets
0068     KF${KF_MAJOR_VERSION}::WidgetsAddons
0069     KF${KF_MAJOR_VERSION}::ItemViews
0070     KF${KF_MAJOR_VERSION}::ConfigCore
0071     KF${KF_MAJOR_VERSION}::Completion
0072     KF${KF_MAJOR_VERSION}::ConfigGui
0073     KF${KF_MAJOR_VERSION}::XmlGui
0074     KF${KF_MAJOR_VERSION}::CoreAddons
0075 )
0076 
0077 set_target_properties(libkdebugsettings
0078     PROPERTIES OUTPUT_NAME kdebugsettings VERSION ${KDEBUGSETTINGS_LIB_VERSION} SOVERSION ${KDEBUGSETTINGS_LIB_SOVERSION}
0079     )
0080 
0081 install(TARGETS libkdebugsettings ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} LIBRARY NAMELINK_SKIP)
0082 
0083 
0084 add_executable(kdebugsettings main.cpp)
0085 if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
0086     set_target_properties(kdebugsettings PROPERTIES UNITY_BUILD ON)
0087 endif()
0088 
0089 target_link_libraries(kdebugsettings Qt::Widgets KF${KF_MAJOR_VERSION}::I18n KF${KF_MAJOR_VERSION}::DBusAddons KF${KF_MAJOR_VERSION}::CoreAddons libkdebugsettings)
0090 
0091 install(TARGETS kdebugsettings  ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )
0092 
0093 
0094 ########### install files ###############
0095 
0096 install( PROGRAMS org.kde.kdebugsettings.desktop  DESTINATION  ${KDE_INSTALL_APPDIR} )
0097 install( FILES org.kde.kdebugsettings.appdata.xml DESTINATION  ${KDE_INSTALL_METAINFODIR})