Warning, /pim/merkuro/src/contacts/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # SPDX-FileCopyrightText: 2022 Carl Schwan <carl@carlschwan.eu> 0002 # SPDX-License-Identifier: BSD-2-Clause 0003 0004 ### Static lib 0005 0006 add_library(merkuro_contact_static STATIC) 0007 0008 target_link_libraries(merkuro_contact_static PUBLIC merkuro_lib KF6::XmlGui) 0009 set_target_properties(merkuro_contact_static PROPERTIES POSITION_INDEPENDENT_CODE ON) 0010 target_sources(merkuro_contact_static PUBLIC 0011 contactapplication.cpp 0012 contactapplication.h 0013 addresseewrapper.cpp 0014 addresseewrapper.h 0015 addressmodel.cpp 0016 addressmodel.h 0017 phonemodel.h 0018 phonemodel.cpp 0019 imppmodel.h 0020 imppmodel.cpp 0021 emailmodel.h 0022 emailmodel.cpp 0023 globalcontactmodel.cpp 0024 globalcontactmodel.h 0025 contactmanager.h 0026 contactmanager.cpp 0027 contactcollectionmodel.cpp 0028 contactcollectionmodel.h 0029 contacteditorbackend.h 0030 contacteditorbackend.cpp 0031 contactgroupeditor.h 0032 contactgroupeditor.cpp 0033 contactgroupwrapper.h 0034 contactgroupwrapper.cpp 0035 contactgroupmodel.h 0036 contactgroupmodel.cpp 0037 contactmetadata.cpp 0038 contactmetadata.h 0039 contactsmodel.cpp 0040 contactsmodel.h 0041 attributes/contactmetadataattribute_p.h 0042 attributes/contactmetadataattribute.cpp 0043 attributes/attributeregistrar.cpp 0044 ) 0045 0046 kconfig_add_kcfg_files(merkuro_contact_static GENERATE_MOC contactconfig.kcfgc) 0047 0048 ecm_qt_declare_logging_category(merkuro_contact_static 0049 HEADER merkuro_contact_debug.h 0050 IDENTIFIER MERKURO_LOG 0051 CATEGORY_NAME org.kde.merkuro.contact 0052 DESCRIPTION "merkuro contact" 0053 EXPORT MERKURO 0054 ) 0055 0056 ecm_add_qml_module(merkuro_contact_plugin URI "org.kde.merkuro.contact" VERSION 1.0) 0057 0058 target_sources(merkuro_contact_plugin PRIVATE 0059 contactplugin.cpp 0060 contactplugin.h 0061 resources.qrc 0062 ) 0063 0064 ecm_target_qml_sources(merkuro_contact_plugin SOURCES 0065 qml/ContactChooserPage.qml 0066 qml/AddressBookCollectionHandler.qml 0067 qml/ContactView.qml 0068 qml/MenuBar.qml 0069 qml/Sidebar.qml 0070 qml/GlobalMenuBar.qml 0071 ) 0072 0073 ecm_target_qml_sources(merkuro_contact_plugin 0074 PRIVATE PATH private SOURCES 0075 qml/private/ContactPage.qml 0076 qml/private/ContactGroupPage.qml 0077 qml/private/ContactsPage.qml 0078 qml/private/ContactListItem.qml 0079 qml/private/Header.qml 0080 qml/private/PhoneNumberDialog.qml 0081 qml/private/QrCodePage.qml 0082 qml/private/AddressBookMenu.qml 0083 qml/private/DeleteContactAction.qml 0084 ) 0085 0086 ecm_target_qml_sources(merkuro_contact_plugin 0087 PRIVATE PATH private/contact_editor SOURCES 0088 qml/private/contact_editor/AddressBookEditorCard.qml 0089 qml/private/contact_editor/BusinessEditorCard.qml 0090 qml/private/contact_editor/ContactEditorPage.qml 0091 qml/private/contact_editor/ContactGroupEditorPage.qml 0092 qml/private/contact_editor/EmailEditorCard.qml 0093 qml/private/contact_editor/PersonalInfoEditorCard.qml 0094 qml/private/contact_editor/PhoneEditorCard.qml 0095 qml/private/contact_editor/PhotoEditor.qml 0096 qml/private/contact_editor/InstantMessengerEditorCard.qml 0097 ) 0098 0099 0100 target_link_libraries(merkuro_contact_plugin PRIVATE merkuro_contact_static) 0101 0102 ecm_qt_install_logging_categories( 0103 EXPORT merkuro 0104 FILE merkuro.contact.categories 0105 DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR} 0106 ) 0107 0108 if (BUILD_TESTING) 0109 add_subdirectory(autotests) 0110 endif() 0111 0112 add_subdirectory(applet) 0113 0114 ecm_finalize_qml_module(merkuro_contact_plugin 0115 DESTINATION ${KDE_INSTALL_QMLDIR} 0116 BUILD_SHARED_LIBS OFF) 0117 0118 #### Binary 0119 0120 add_executable(merkuro-contact main.cpp resources.qrc) 0121 target_link_libraries(merkuro-contact 0122 PRIVATE 0123 Qt::Widgets 0124 Qt::Quick 0125 Qt::QuickControls2 0126 KF6::I18n 0127 KF6::CoreAddons 0128 KF6::DBusAddons 0129 KF6::WindowSystem 0130 KF6::ConfigGui 0131 ) 0132 install(TARGETS merkuro-contact ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) 0133 install(PROGRAMS org.kde.merkuro.contact.desktop DESTINATION ${KDE_INSTALL_APPDIR}) 0134 install(FILES org.kde.merkuro.contact.metainfo.xml DESTINATION ${KDE_INSTALL_METAINFODIR})