CMakeLists.txt 1.35 KB
Newer Older
1
set(headerthemeeditor_SRCS
Laurent Montel's avatar
indent    
Laurent Montel committed
2
3
4
5
6
7
8
9
10
11
12
13
    main.cpp
    themeeditormainwindow.cpp
    themeeditorpage.cpp
    previewwidget.cpp
    editorpage.cpp
    themetemplatewidget.cpp
    themedefaulttemplate.cpp
    defaultcompletion.cpp
    themeconfiguredialog.cpp
    themeeditorutil.cpp
    themeeditorwidget.cpp
    )
14

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(headerthemeeditor_SRCS HEADER headerthemeeditor_debug.h IDENTIFIER HEADERTHEMEEDITOR_LOG CATEGORY_NAME org.kde.pim.headerthemeeditor)
else()
    ecm_qt_declare_logging_category(headerthemeeditor_SRCS HEADER headerthemeeditor_debug.h IDENTIFIER HEADERTHEMEEDITOR_LOG CATEGORY_NAME org.kde.pim.headerthemeeditor
        DESCRIPTION "grantleeeditor (headerthemeeditor)"
        OLD_CATEGORY_NAMES log_headerthemeeditor
        EXPORT GRANTLEEEDITOR
    )
endif()

Laurent Montel's avatar
Laurent Montel committed
25
qt5_add_resources(headerthemeeditor_SRCS headerthemeeditor.qrc)
26

Laurent Montel's avatar
Laurent Montel committed
27
add_executable(headerthemeeditor ${headerthemeeditor_SRCS} )
Laurent Montel's avatar
Laurent Montel committed
28
29
30
31
32
33
34
35
36
37
target_link_libraries(headerthemeeditor
    KF5::Mime
    KF5::NewStuff
    KF5::PimCommon
    KF5::MessageViewer
    grantleethemeeditor
    KF5::DBusAddons
    KF5::GrantleeTheme
    KF5::PimTextEdit
    KF5::I18n
Laurent Montel's avatar
Laurent Montel committed
38
39
40
    KF5::XmlGui
    KF5::Crash
    )
41

42
install(TARGETS headerthemeeditor ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
43

44
install(PROGRAMS org.kde.headerthemeeditor.desktop DESTINATION ${KDE_INSTALL_APPDIR})