Warning, /pim/libksieve/src/ksieveui/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 # SPDX-FileCopyrightText: 2011-2024 Laurent Montel <montel@kde.org>
0002 # SPDX-License-Identifier: BSD-3-Clause
0003 
0004 ecm_setup_version(PROJECT VARIABLE_PREFIX LIBKSIEVEUI
0005                         VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/libksieveui_version.h"
0006                         PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/KPim6KSieveUiConfigVersion.cmake"
0007                         SOVERSION 6
0008 )
0009 
0010 add_library(KPim6KSieveUi)
0011 add_library(KPim6::KSieveUi ALIAS KPim6KSieveUi)
0012 if(KDEPIM_ENTERPRISE_BUILD)
0013     set(USE_GRAPHICAL_SIEVE_EDITOR true)
0014 else()
0015     set(USE_GRAPHICAL_SIEVE_EDITOR false)
0016 endif()
0017 
0018 
0019 configure_file(settings/sieve-editor.kcfg.in ${CMAKE_CURRENT_BINARY_DIR}/sieve-editor.kcfg)
0020 
0021 if(BUILD_TESTING)
0022     add_subdirectory(editor/tests)
0023     add_subdirectory(editor/autotests)
0024     add_subdirectory(autocreatescripts/tests)
0025     add_subdirectory(vacation/autotests)
0026     add_subdirectory(scriptsparsing/tests)
0027     add_subdirectory(sievescriptdebugger/autotests)
0028     add_subdirectory(sievescriptdebugger/tests)
0029     add_subdirectory(autocreatescripts/autotests/)
0030     add_subdirectory(editor/webengine/findbar/autotests/)
0031     add_subdirectory(editor/webengine/autotests/)
0032     add_subdirectory(widgets/autotests)
0033 endif()
0034 
0035 target_sources(KPim6KSieveUi PRIVATE
0036     vacation/vacationmaillineedit.cpp
0037     vacation/vacationeditwidget.cpp
0038     vacation/multiimapvacationdialog.cpp
0039     vacation/vacationpagewidget.cpp
0040     vacation/vacationwarningwidget.cpp
0041     vacation/vacationmanager.cpp
0042     vacation/vacationmailactionwidget.cpp
0043 )
0044 target_sources(KPim6KSieveUi PRIVATE
0045     editor/webengine/sieveeditorwebengineview.cpp
0046     editor/webengine/sieveeditorhelphtmlwidget.cpp
0047     editor/webengine/sieveeditorloadprogressindicator.cpp
0048     editor/webengine/findbar/findbarbase.cpp
0049     editor/webengine/findbar/findbarwebengineview.cpp
0050 )
0051 
0052 target_sources(KPim6KSieveUi PRIVATE
0053     editor/sieveeditorwidget.cpp
0054     editor/sievetextedit.cpp
0055     editor/sieveeditor.cpp
0056     editor/sievelinenumberarea.cpp
0057     editor/sieveinfowidget.cpp
0058     editor/sieveeditortextmodewidget.cpp
0059     editor/sieveeditorabstractwidget.cpp
0060     editor/warningwidget/sieveeditorwarning.cpp
0061     editor/warningwidget/sieveeditorparsingmissingfeaturewarning.cpp
0062     editor/sieveeditortabwidget.cpp
0063     editor/sieveeditorutil.cpp
0064     editor/sieveeditormenubar.cpp
0065     editor/sievetexteditorspellcheckdecorator.cpp
0066     editor/sievetexteditwidget.cpp
0067     editor/sieveinfodialog.cpp
0068     editor/sievepurposemenuwidget.cpp
0069     editor/sievepurposemenuwidget.h
0070 )
0071 
0072 target_sources(KPim6KSieveUi PRIVATE
0073     autocreatescripts/sievepreviewgeneratedcodewidget.cpp
0074     autocreatescripts/sieveeditorgraphicalmodewidgetabstract.cpp
0075     autocreatescripts/sievescriptparsingerrordialog.cpp
0076     autocreatescripts/sieveeditorgraphicalmodewidget.cpp
0077     autocreatescripts/autocreatescriptdialog.cpp
0078     autocreatescripts/sieveconditionwidgetlister.cpp
0079     autocreatescripts/sievescriptlistbox.cpp
0080     autocreatescripts/sievescriptdescriptiondialog.cpp
0081     autocreatescripts/sieveactionwidgetlister.cpp
0082     autocreatescripts/sievescriptpage.cpp
0083     autocreatescripts/sievescriptblockwidget.cpp
0084     autocreatescripts/sievescripttabwidget.cpp
0085     autocreatescripts/autocreatescriptutil.cpp
0086     autocreatescripts/sieveincludewidget.cpp
0087     autocreatescripts/sieveforeverypartwidget.cpp
0088     autocreatescripts/sievewidgetpageabstract.cpp
0089     autocreatescripts/sieveglobalvariablewidget.cpp
0090     autocreatescripts/sieveactions/sieveactionlist.cpp
0091     autocreatescripts/sieveactions/sieveaction.cpp
0092     autocreatescripts/sieveactions/sieveactiondiscard.cpp
0093     autocreatescripts/sieveactions/sieveactionstop.cpp
0094     autocreatescripts/sieveactions/sieveactionsetflags.cpp
0095     autocreatescripts/sieveactions/sieveactionaddflags.cpp
0096     autocreatescripts/sieveactions/sieveactionfileinto.cpp
0097     autocreatescripts/sieveactions/sieveactionreject.cpp
0098     autocreatescripts/sieveactions/sieveactionkeep.cpp
0099     autocreatescripts/sieveactions/sieveactionredirect.cpp
0100     autocreatescripts/sieveactions/sieveactionabstractflags.cpp
0101     autocreatescripts/sieveactions/sieveactionremoveflags.cpp
0102     autocreatescripts/sieveactions/sieveactionnotify.cpp
0103     autocreatescripts/sieveactions/sieveactionabstracteditheader.cpp
0104     autocreatescripts/sieveactions/sieveactiondeleteheader.cpp
0105     autocreatescripts/sieveactions/sieveactionaddheader.cpp
0106     autocreatescripts/sieveactions/sieveactionvacation.cpp
0107     autocreatescripts/sieveactions/sieveactionenclose.cpp
0108     autocreatescripts/sieveactions/sieveactionreplace.cpp
0109     autocreatescripts/sieveactions/sieveactionextracttext.cpp
0110     autocreatescripts/sieveactions/sieveactionbreak.cpp
0111     autocreatescripts/sieveactions/sieveactionconvert.cpp
0112     autocreatescripts/sieveactions/sieveactionsetvariable.cpp
0113     autocreatescripts/sieveactions/sieveactionreturn.cpp
0114     autocreatescripts/sieveactions/sieveactionereject.cpp
0115     autocreatescripts/sieveactions/widgets/selectflagswidget.cpp
0116     autocreatescripts/sieveactions/widgets/addresslineedit.cpp
0117     autocreatescripts/sieveactions/widgets/selectaddheaderpositioncombobox.cpp
0118     autocreatescripts/sieveactions/widgets/selectimportancecombobox.cpp
0119     autocreatescripts/sieveactions/widgets/multilineedit.cpp
0120     autocreatescripts/sieveactions/widgets/selectvacationcombobox.cpp
0121     autocreatescripts/sieveactions/widgets/selectvariablemodifiercombobox.cpp
0122     autocreatescripts/commonwidgets/selectconvertparameterwidget.cpp
0123     autocreatescripts/commonwidgets/selectmatchtypecombobox.cpp
0124     autocreatescripts/commonwidgets/selectmimetypecombobox.cpp
0125     autocreatescripts/commonwidgets/sievehelpbutton.cpp
0126     autocreatescripts/commonwidgets/sievecommonactioncondition.cpp
0127     autocreatescripts/sieveconditions/sievecondition.cpp
0128     autocreatescripts/sieveconditions/sieveconditionheader.cpp
0129     autocreatescripts/sieveconditions/sieveconditionlist.cpp
0130     autocreatescripts/sieveconditions/sieveconditionaddress.cpp
0131     autocreatescripts/sieveconditions/sieveconditionsize.cpp
0132     autocreatescripts/sieveconditions/sieveconditionenvelope.cpp
0133     autocreatescripts/sieveconditions/sieveconditionexists.cpp
0134     autocreatescripts/sieveconditions/sieveconditiontrue.cpp
0135     autocreatescripts/sieveconditions/sieveconditionbody.cpp
0136     autocreatescripts/sieveconditions/sieveconditiondate.cpp
0137     autocreatescripts/sieveconditions/sieveconditioncurrentdate.cpp
0138     autocreatescripts/sieveconditions/sieveconditionmailboxexists.cpp
0139     autocreatescripts/sieveconditions/sieveconditionspamtest.cpp
0140     autocreatescripts/sieveconditions/sieveconditionvirustest.cpp
0141     autocreatescripts/sieveconditions/sieveconditionihave.cpp
0142     autocreatescripts/sieveconditions/sieveconditionfalse.cpp
0143     autocreatescripts/sieveconditions/sieveconditionenvironment.cpp
0144     autocreatescripts/sieveconditions/sieveconditionhasflag.cpp
0145     autocreatescripts/sieveconditions/sieveconditionmetadata.cpp
0146     autocreatescripts/sieveconditions/sieveconditionconvert.cpp
0147     autocreatescripts/sieveconditions/sieveconditionmetadataexists.cpp
0148     autocreatescripts/sieveconditions/sieveconditionservermetadata.cpp
0149     autocreatescripts/sieveconditions/sieveconditionservermetadataexists.cpp
0150     autocreatescripts/sieveconditions/widgets/selectdatewidget.cpp
0151     autocreatescripts/sieveconditions/widgets/selectaddresspartcombobox.cpp
0152     autocreatescripts/sieveconditions/widgets/selectheadertypecombobox.cpp
0153     autocreatescripts/sieveconditions/widgets/selectbodytypewidget.cpp
0154     autocreatescripts/sieveconditions/widgets/selectrelationalmatchtype.cpp
0155     autocreatescripts/sieveconditions/widgets/selectcomparatorcombobox.cpp
0156     autocreatescripts/sieveconditions/widgets/selectmimecombobox.cpp
0157     autocreatescripts/sieveconditions/widgets/selectsizetypecombobox.cpp
0158     autocreatescripts/sieveconditions/widgets/selectsizewidget.cpp
0159     autocreatescripts/sieveconditions/widgets/sievedatespinbox.cpp
0160     autocreatescripts/sieveconditions/widgets/regexpeditorlineedit.cpp
0161 )
0162 
0163 target_sources(KPim6KSieveUi PRIVATE
0164     scriptsparsing/parsingresultdialog.cpp
0165 )
0166 
0167 target_sources(KPim6KSieveUi PRIVATE
0168     sievescriptdebugger/sievescriptdebuggerdialog.cpp
0169     sievescriptdebugger/sievescriptdebuggerwidget.cpp
0170     sievescriptdebugger/sievescriptdebuggerfrontendwidget.cpp
0171     sievescriptdebugger/sievescriptdebuggerwarning.cpp
0172     sievescriptdebugger/sievescriptdebuggertextedit.cpp
0173     sievescriptdebugger/sievescriptdebuggerresulteditor.cpp
0174 )
0175 
0176 target_sources(KPim6KSieveUi PRIVATE
0177     widgets/custommanagesievewidget.cpp
0178     widgets/sievetreewidgetitem.cpp
0179     widgets/managesievetreeview.cpp
0180     widgets/managesievewidget.cpp
0181     widgets/abstractmoveimapfolderwidget.cpp
0182     widgets/abstractregexpeditorlineedit.cpp
0183     widgets/abstractselectemaillineedit.cpp
0184     widgets/lineeditvalidator.cpp
0185     widgets/includefilelineedit.cpp
0186     widgets/moveimapfolderwidget.cpp
0187 )
0188 
0189 target_sources(KPim6KSieveUi PRIVATE
0190     managesievescriptsdialog.cpp
0191     debug/sievedebugdialog.cpp
0192     templates/sievetemplatewidget.cpp
0193     templates/sievedefaulttemplate.cpp
0194     templates/sievetemplateeditdialog.cpp
0195     editor/sieveeditortabwidget.h
0196     editor/sievetextedit.h
0197     editor/sievetexteditorspellcheckdecorator.h
0198     editor/sieveeditortextmodewidget.h
0199     editor/sievetexteditwidget.h
0200     editor/sieveinfowidget.h
0201     editor/sieveinfodialog.h
0202     editor/sieveeditor.h
0203     editor/sieveeditorabstractwidget.h
0204     editor/webengine/findbar/findbarwebengineview.h
0205     editor/webengine/findbar/findbarbase.h
0206     editor/webengine/sieveeditorloadprogressindicator.h
0207     editor/webengine/sieveeditorhelphtmlwidget.h
0208     editor/webengine/sieveeditorwebengineview.h
0209     editor/sieveeditorwidget.h
0210     editor/sieveeditorutil.h
0211     editor/sieveeditormenubar.h
0212     editor/warningwidget/sieveeditorwarning.h
0213     editor/warningwidget/sieveeditorparsingmissingfeaturewarning.h
0214     editor/sievelinenumberarea.h
0215     templates/sievedefaulttemplate.h
0216     templates/sievetemplatewidget.h
0217     templates/sievetemplateeditdialog.h
0218     scriptsparsing/parsingresultdialog.h
0219     ksieveui_private_export.h
0220     widgets/lineeditvalidator.h
0221     widgets/sievetreewidgetitem.h
0222     widgets/custommanagesievewidget.h
0223     widgets/moveimapfolderwidget.h
0224     widgets/managesievetreeview.h
0225     widgets/managesievewidget.h
0226     widgets/abstractregexpeditorlineedit.h
0227     widgets/abstractselectemaillineedit.h
0228     widgets/abstractmoveimapfolderwidget.h
0229     widgets/includefilelineedit.h
0230     vacation/vacationwarningwidget.h
0231     vacation/vacationmailactionwidget.h
0232     vacation/multiimapvacationdialog.h
0233     vacation/vacationmaillineedit.h
0234     vacation/vacationmanager.h
0235     vacation/vacationpagewidget.h
0236     vacation/vacationeditwidget.h
0237     autocreatescripts/sieveforeverypartwidget.h
0238     autocreatescripts/sievepreviewgeneratedcodewidget.h
0239     autocreatescripts/sievescriptdescriptiondialog.h
0240     autocreatescripts/sieveeditorgraphicalmodewidget.h
0241     autocreatescripts/sieveactionwidgetlister.h
0242     autocreatescripts/sievescriptlistbox.h
0243     autocreatescripts/sieveconditions/sieveconditionmetadata.h
0244     autocreatescripts/sieveconditions/sieveconditionsize.h
0245     autocreatescripts/sieveconditions/sieveconditionaddress.h
0246     autocreatescripts/sieveconditions/sieveconditionihave.h
0247     autocreatescripts/sieveconditions/sieveconditionenvelope.h
0248     autocreatescripts/sieveconditions/sieveconditiondate.h
0249     autocreatescripts/sieveconditions/sieveconditionmetadataexists.h
0250     autocreatescripts/sieveconditions/sieveconditionlist.h
0251     autocreatescripts/sieveconditions/sieveconditiontrue.h
0252     autocreatescripts/sieveconditions/sieveconditioncurrentdate.h
0253     autocreatescripts/sieveconditions/sieveconditionexists.h
0254     autocreatescripts/sieveconditions/sieveconditionmailboxexists.h
0255     autocreatescripts/sieveconditions/sieveconditionfalse.h
0256     autocreatescripts/sieveconditions/widgets/selectmimecombobox.h
0257     autocreatescripts/sieveconditions/widgets/selectbodytypewidget.h
0258     autocreatescripts/sieveconditions/widgets/selectsizetypecombobox.h
0259     autocreatescripts/sieveconditions/widgets/selectcomparatorcombobox.h
0260     autocreatescripts/sieveconditions/widgets/selectaddresspartcombobox.h
0261     autocreatescripts/sieveconditions/widgets/sievedatespinbox.h
0262     autocreatescripts/sieveconditions/widgets/selectdatewidget.h
0263     autocreatescripts/sieveconditions/widgets/selectsizewidget.h
0264     autocreatescripts/sieveconditions/widgets/selectheadertypecombobox.h
0265     autocreatescripts/sieveconditions/widgets/selectrelationalmatchtype.h
0266     autocreatescripts/sieveconditions/widgets/regexpeditorlineedit.h
0267     autocreatescripts/sieveconditions/sieveconditionservermetadata.h
0268     autocreatescripts/sieveconditions/sieveconditionheader.h
0269     autocreatescripts/sieveconditions/sieveconditionbody.h
0270     autocreatescripts/sieveconditions/sieveconditionconvert.h
0271     autocreatescripts/sieveconditions/sieveconditionhasflag.h
0272     autocreatescripts/sieveconditions/sieveconditionvirustest.h
0273     autocreatescripts/sieveconditions/sieveconditionenvironment.h
0274     autocreatescripts/sieveconditions/sievecondition.h
0275     autocreatescripts/sieveconditions/sieveconditionservermetadataexists.h
0276     autocreatescripts/sieveconditions/sieveconditionspamtest.h
0277     autocreatescripts/sieveeditorgraphicalmodewidgetabstract.h
0278     autocreatescripts/sievescriptpage.h
0279     autocreatescripts/sieveincludewidget.h
0280     autocreatescripts/commonwidgets/sievehelpbutton.h
0281     autocreatescripts/commonwidgets/sievecommonactioncondition.h
0282     autocreatescripts/commonwidgets/selectmimetypecombobox.h
0283     autocreatescripts/commonwidgets/selectconvertparameterwidget.h
0284     autocreatescripts/commonwidgets/selectmatchtypecombobox.h
0285     autocreatescripts/sievescriptparsingerrordialog.h
0286     autocreatescripts/autocreatescriptutil_p.h
0287     autocreatescripts/sieveconditionwidgetlister.h
0288     autocreatescripts/sievescripttabwidget.h
0289     autocreatescripts/sievewidgetpageabstract.h
0290     autocreatescripts/sievescriptblockwidget.h
0291     autocreatescripts/sieveactions/sieveactionconvert.h
0292     autocreatescripts/sieveactions/sieveactionvacation.h
0293     autocreatescripts/sieveactions/sieveactionenclose.h
0294     autocreatescripts/sieveactions/sieveactionlist.h
0295     autocreatescripts/sieveactions/sieveactionreject.h
0296     autocreatescripts/sieveactions/sieveactionnotify.h
0297     autocreatescripts/sieveactions/sieveactionremoveflags.h
0298     autocreatescripts/sieveactions/sieveaction.h
0299     autocreatescripts/sieveactions/sieveactiondiscard.h
0300     autocreatescripts/sieveactions/sieveactionaddflags.h
0301     autocreatescripts/sieveactions/sieveactionkeep.h
0302     autocreatescripts/sieveactions/sieveactionaddheader.h
0303     autocreatescripts/sieveactions/sieveactionstop.h
0304     autocreatescripts/sieveactions/widgets/multilineedit.h
0305     autocreatescripts/sieveactions/widgets/selectimportancecombobox.h
0306     autocreatescripts/sieveactions/widgets/selectvariablemodifiercombobox.h
0307     autocreatescripts/sieveactions/widgets/selectvacationcombobox.h
0308     autocreatescripts/sieveactions/widgets/addresslineedit.h
0309     autocreatescripts/sieveactions/widgets/selectaddheaderpositioncombobox.h
0310     autocreatescripts/sieveactions/widgets/selectflagswidget.h
0311     autocreatescripts/sieveactions/sieveactionsetvariable.h
0312     autocreatescripts/sieveactions/sieveactionsetflags.h
0313     autocreatescripts/sieveactions/sieveactionbreak.h
0314     autocreatescripts/sieveactions/sieveactionereject.h
0315     autocreatescripts/sieveactions/sieveactiondeleteheader.h
0316     autocreatescripts/sieveactions/sieveactionextracttext.h
0317     autocreatescripts/sieveactions/sieveactionreturn.h
0318     autocreatescripts/sieveactions/sieveactionredirect.h
0319     autocreatescripts/sieveactions/sieveactionabstractflags.h
0320     autocreatescripts/sieveactions/sieveactionreplace.h
0321     autocreatescripts/sieveactions/sieveactionfileinto.h
0322     autocreatescripts/sieveactions/sieveactionabstracteditheader.h
0323     autocreatescripts/sieveglobalvariablewidget.h
0324     autocreatescripts/autocreatescriptdialog.h
0325     sievescriptdebugger/sievescriptdebuggertextedit.h
0326     sievescriptdebugger/sievescriptdebuggerdialog.h
0327     sievescriptdebugger/sievescriptdebuggerresulteditor.h
0328     sievescriptdebugger/sievescriptdebuggerwidget.h
0329     sievescriptdebugger/sievescriptdebuggerwarning.h
0330     sievescriptdebugger/sievescriptdebuggerfrontendwidget.h
0331     debug/sievedebugdialog.h
0332     managesievescriptsdialog.h
0333 )
0334 
0335 ecm_qt_declare_logging_category(KPim6KSieveUi HEADER libksieveui_debug.h IDENTIFIER LIBKSIEVEUI_LOG CATEGORY_NAME org.kde.pim.libksieve
0336     DESCRIPTION "kdepim (libksieve)"
0337     OLD_CATEGORY_NAMES log_libksieve LIBKSIEVE_LOG
0338     EXPORT LIBKSIEVE
0339 )
0340 
0341 
0342 kconfig_add_kcfg_files(KPim6KSieveUi settings/sieve-editor.kcfgc)
0343 
0344 generate_export_header(KPim6KSieveUi BASE_NAME ksieveui)
0345 if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
0346     set_target_properties(KPim6KSieveUi PROPERTIES UNITY_BUILD ON)
0347 endif()
0348 
0349 
0350 
0351 target_link_libraries(KPim6KSieveUi
0352     PUBLIC
0353     KPim6::KSieveCore
0354     KPim6::KManageSieve
0355     KPim6::KSieve
0356     KPim6::PimCommon
0357     PRIVATE
0358     KPim6::Libkdepim
0359     KF6::Archive
0360     KPim6::Mime
0361     KF6::IconThemes
0362     KF6::IconWidgets
0363     KPim6::IdentityManagementCore
0364     KPim6::MailTransport
0365     KF6::KIOWidgets
0366     KF6::NewStuffCore
0367     Qt::WebEngineWidgets
0368     KF6::I18n
0369     KF6::SonnetUi
0370     Qt::PrintSupport
0371     KF6::SyntaxHighlighting
0372     KF6::TextAddonsWidgets
0373     KF6::TextCustomEditor
0374     KF6::TextUtils
0375 )
0376 
0377 if (TARGET KF6::TextEditTextToSpeech)
0378     target_link_libraries(KPim6KSieveUi
0379         PRIVATE
0380         KF6::TextEditTextToSpeech
0381     )
0382 endif()
0383 
0384 set_target_properties(KPim6KSieveUi PROPERTIES
0385     VERSION ${LIBKSIEVEUI_VERSION}
0386     SOVERSION ${LIBKSIEVEUI_SOVERSION}
0387     EXPORT_NAME KSieveUi
0388 )
0389 
0390 target_include_directories(KPim6KSieveUi
0391     INTERFACE "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR}/KPim6/KSieveUi/;${KDE_INSTALL_INCLUDEDIR}/KPim6/KSieveUi>")
0392 target_include_directories(KPim6KSieveUi PUBLIC "$<BUILD_INTERFACE:${libksieve_SOURCE_DIR}/src/ksieveui;${libksieve_BINARY_DIR}/src/ksieveui>")
0393 
0394 ecm_generate_headers(ksieveui_CamelCase_HEADERS
0395     HEADER_NAMES
0396     ManageSieveScriptsDialog
0397     REQUIRED_HEADERS ksieveui_HEADERS
0398     PREFIX KSieveUi
0399 )
0400 
0401 ecm_generate_headers(ksieveui_Camelcaseeditor_HEADERS
0402     HEADER_NAMES
0403     SieveEditor
0404     SieveEditorWidget
0405     REQUIRED_HEADERS ksieveui_editor_HEADERS
0406     PREFIX KSieveUi
0407     RELATIVE editor
0408 )
0409 
0410 ecm_generate_headers(ksieveui_Camelcasevacation_HEADERS
0411     HEADER_NAMES
0412     VacationManager
0413     MultiImapVacationDialog
0414     REQUIRED_HEADERS ksieveui_vacation_HEADERS
0415     PREFIX KSieveUi
0416     RELATIVE vacation
0417 )
0418 
0419 ecm_generate_headers(ksieveui_Camelcasedebug_HEADERS
0420     HEADER_NAMES
0421     SieveDebugDialog
0422     REQUIRED_HEADERS ksieveui_debug_HEADERS
0423     PREFIX KSieveUi
0424     RELATIVE debug
0425 )
0426 
0427 ecm_generate_headers(ksieveui_Camelcasewidgets_HEADERS
0428     HEADER_NAMES
0429     ManageSieveWidget
0430     SieveTreeWidgetItem
0431     ManageSieveTreeView
0432     AbstractMoveImapFolderWidget
0433     AbstractRegexpEditorLineEdit
0434     AbstractSelectEmailLineEdit
0435     REQUIRED_HEADERS ksieveui_widgets_HEADERS
0436     PREFIX KSieveUi
0437     RELATIVE widgets
0438 )
0439 
0440 
0441 install(TARGETS KPim6KSieveUi EXPORT KPim6KSieveUiTargets ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
0442 install(FILES
0443     ${ksieveui_Camelcasewidgets_HEADERS}
0444     ${ksieveui_Camelcasedebug_HEADERS}
0445     ${ksieveui_Camelcasevacation_HEADERS}
0446     ${ksieveui_CamelCase_HEADERS}
0447     ${ksieveui_Camelcaseeditor_HEADERS}
0448     DESTINATION ${KDE_INSTALL_INCLUDEDIR}/KPim6/KSieveUi/KSieveUi
0449     COMPONENT Devel
0450 )
0451 
0452 install(FILES
0453     ${CMAKE_CURRENT_BINARY_DIR}/ksieveui_export.h
0454     ${ksieveui_widgets_HEADERS}
0455     ${ksieveui_debug_HEADERS}
0456     ${ksieveui_vacation_HEADERS}
0457     ${ksieveui_HEADERS}
0458     ${ksieveui_editor_HEADERS}
0459     DESTINATION ${KDE_INSTALL_INCLUDEDIR}/KPim6/KSieveUi/ksieveui
0460     COMPONENT Devel
0461 )
0462 
0463 install(FILES
0464     ${CMAKE_CURRENT_BINARY_DIR}/libksieveui_version.h
0465     DESTINATION ${KDE_INSTALL_INCLUDEDIR}/KPim6/KSieveUi COMPONENT Devel
0466     )
0467 
0468 install(FILES data/ksieve_script.knsrc DESTINATION ${KDE_INSTALL_KNSRCDIR} )
0469 install(DIRECTORY data/scripts/ DESTINATION ${KDE_INSTALL_DATADIR}/sieve/scripts/ )
0470 
0471 if (BUILD_QCH)
0472     ecm_add_qch(
0473         KPim6KSieveUi_QCH
0474         NAME KPim6KSieveUi
0475         BASE_NAME KPim6KSieveUi
0476         VERSION ${PIM_VERSION}
0477         ORG_DOMAIN org.kde
0478         SOURCES # using only public headers, to cover only public API
0479         ${ksieveui_widgets_HEADERS}
0480         ${ksieveui_debug_HEADERS}
0481         ${ksieveui_vacation_HEADERS}
0482         ${ksieveui_HEADERS}
0483         ${ksieveui_editor_HEADERS}
0484         ${ksieveui_util_HEADERS}
0485         ${ksieveui_managescriptsjob_HEADERS}
0486         LINK_QCHS
0487         Qt6Core_QCH
0488         Qt6Gui_QCH
0489         Qt6Widgets_QCH
0490         INCLUDE_DIRS
0491         ${CMAKE_CURRENT_BINARY_DIR}
0492         BLANK_MACROS
0493         KSIEVEUI_EXPORT
0494         TAGFILE_INSTALL_DESTINATION ${KDE_INSTALL_QTQCHDIR}
0495         QCH_INSTALL_DESTINATION ${KDE_INSTALL_QTQCHDIR}
0496         COMPONENT Devel
0497     )
0498 endif()
0499 
0500 set(CMAKECONFIG_INSTALL_DIR "${KDE_INSTALL_CMAKEPACKAGEDIR}/KPim6KSieveUi")
0501 if (BUILD_QCH)
0502     ecm_install_qch_export(
0503         TARGETS KPim6KSieveUi_QCH
0504         FILE KPim6KSieveUiQchTargets.cmake
0505         DESTINATION "${CMAKECONFIG_INSTALL_DIR}"
0506         COMPONENT Devel
0507     )
0508 set(PACKAGE_INCLUDE_QCHTARGETS "include(\"\${CMAKE_CURRENT_LIST_DIR}/KPim6KSieveUiQchTargets.cmake\")")
0509 endif()
0510 
0511 configure_package_config_file(
0512     "${CMAKE_CURRENT_SOURCE_DIR}/KPimKSieveUiConfig.cmake.in"
0513     "${CMAKE_CURRENT_BINARY_DIR}/KPim6KSieveUiConfig.cmake"
0514     INSTALL_DESTINATION  ${CMAKECONFIG_INSTALL_DIR}
0515 )
0516 
0517 install(FILES
0518     "${CMAKE_CURRENT_BINARY_DIR}/KPim6KSieveUiConfig.cmake"
0519     "${CMAKE_CURRENT_BINARY_DIR}/KPim6KSieveUiConfigVersion.cmake"
0520     DESTINATION "${CMAKECONFIG_INSTALL_DIR}"
0521     COMPONENT Devel
0522 )
0523 
0524 install(EXPORT KPim6KSieveUiTargets DESTINATION "${CMAKECONFIG_INSTALL_DIR}" FILE KPim6KSieveUiTargets.cmake NAMESPACE KPim6::)