CMakeLists.txt 1.4 KB
Newer Older
1
set(contactthemeeditor_SRCS
Laurent Montel's avatar
indent    
Laurent Montel committed
2
3
4
5
6
7
8
9
10
11
12
13
14
    main.cpp
    defaultcompletion.cpp
    contactdefaulttemplate.cpp
    contacteditorwidget.cpp
    contacttemplatewidget.cpp
    contacteditormainwindow.cpp
    previewwidget.cpp
    editorpage.cpp
    contacteditorpage.cpp
    contactconfigurationdialog.cpp
    contacteditorutil.cpp
    contactpreviewwidget.cpp
    )
Laurent Montel's avatar
Laurent Montel committed
15
16
17
18
19
20
21
22
23
24
if (ECM_VERSION VERSION_LESS "5.68.0")
    ecm_qt_declare_logging_category(contactthemeeditor_SRCS HEADER contactthemeeditor_debug.h IDENTIFIER CONTACTTHEMEEDITOR_LOG CATEGORY_NAME org.kde.pim.contactthemeeditor)
else()
    ecm_qt_declare_logging_category(contactthemeeditor_SRCS HEADER contactthemeeditor_debug.h IDENTIFIER CONTACTTHEMEEDITOR_LOG CATEGORY_NAME org.kde.pim.contactthemeeditor
        DESCRIPTION "grantleeeditor (contactthemeeditor)"
        OLD_CATEGORY_NAMES log_contactthemeeditor
        EXPORT GRANTLEEEDITOR
    )
endif()

Laurent Montel's avatar
Laurent Montel committed
25
qt5_add_resources(contactthemeeditor_SRCS contactthemeeditor.qrc)
26

Laurent Montel's avatar
Laurent Montel committed
27
add_executable(contactthemeeditor ${contactthemeeditor_SRCS} )
28
target_link_libraries(contactthemeeditor
Laurent Montel's avatar
indent    
Laurent Montel committed
29
30
31
32
33
34
35
36
37
    PRIVATE
    KF5::DBusAddons
    KF5::NewStuff
    KF5::AkonadiContact
    KF5::PimCommon
    grantleethemeeditor
    KF5::KaddressbookGrantlee
    KF5::PimTextEdit
    KF5::I18n
Laurent Montel's avatar
Laurent Montel committed
38
    KF5::Crash
Laurent Montel's avatar
indent    
Laurent Montel committed
39
    )
40

41
install(TARGETS contactthemeeditor ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
42

43
install(PROGRAMS org.kde.contactthemeeditor.desktop DESTINATION ${KDE_INSTALL_APPDIR})