CMakeLists.txt 877 Bytes
Newer Older
Friedrich W. H. Kossebau's avatar
Friedrich W. H. Kossebau committed
1
2
add_definitions(-DTRANSLATION_DOMAIN=\"markdownpart\")

3
configure_file(markdownpart.desktop.in ${CMAKE_CURRENT_BINARY_DIR}/markdownpart.desktop @ONLY)
Friedrich W. H. Kossebau's avatar
Friedrich W. H. Kossebau committed
4

5
6
7
add_library(markdownpart MODULE)

target_sources(markdownpart PRIVATE
Friedrich W. H. Kossebau's avatar
Friedrich W. H. Kossebau committed
8
9
10
11
12
13
14
15
16
    searchtoolbar.cpp
    markdownview.cpp
    markdownpartfactory.cpp
    markdownpart.cpp
    markdownbrowserextension.cpp

    markdownpart.qrc
)

17
18
ki18n_wrap_ui(markdownpart searchtoolbar.ui)

19
kcoreaddons_desktop_to_json(markdownpart ${CMAKE_CURRENT_BINARY_DIR}/markdownpart.desktop)
Friedrich W. H. Kossebau's avatar
Friedrich W. H. Kossebau committed
20
21
22
23
24
25
26
27

target_link_libraries(markdownpart
    KF5::I18n
    KF5::Parts
    Qt5::Widgets
)

install(TARGETS markdownpart  DESTINATION ${KDE_INSTALL_PLUGINDIR}/kf5/parts)
28
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/markdownpart.desktop  DESTINATION ${KDE_INSTALL_KSERVICES5DIR})
Friedrich W. H. Kossebau's avatar
Friedrich W. H. Kossebau committed
29
30
31
32
33

install(
    FILES org.kde.markdownpart.metainfo.xml
    DESTINATION ${KDE_INSTALL_METAINFODIR}
)