diff options
author | Mavridis Philippe <[email protected]> | 2022-02-05 17:44:26 +0000 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2022-04-17 18:35:01 +0200 |
commit | 95279fbf6dfeb43d80590740a9259d7caa614177 (patch) | |
tree | 8c3ff4de77102f1e55357dd81d650e9f22be69a0 /tdemarkdown/CMakeLists.txt | |
parent | a291f3a0a3fab073c009f77a36745c5c7bd48e9b (diff) | |
download | tdelibs-95279fbf6dfeb43d80590740a9259d7caa614177.tar.gz tdelibs-95279fbf6dfeb43d80590740a9259d7caa614177.zip |
Add tdemarkdown part - embeddable lightweight markdown viewing component.
TDEMarkdown is based on the md4c library and using TDEHTML for rendering
its output. For enhanced safety, on HTML widget is turned off everything
we don't need for viewing. It integrates nicely into Konqueror and
supports both Commonmark and GitHub markdown syntaxes.
Signed-off-by: Mavridis Philippe <[email protected]>
Prepare to merge tdemarkdown into tdelibs.
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'tdemarkdown/CMakeLists.txt')
-rw-r--r-- | tdemarkdown/CMakeLists.txt | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/tdemarkdown/CMakeLists.txt b/tdemarkdown/CMakeLists.txt new file mode 100644 index 000000000..38df3b6e0 --- /dev/null +++ b/tdemarkdown/CMakeLists.txt @@ -0,0 +1,67 @@ +########################################### +# # +# Copyright (C) 2022 Mavridis Philippe # +# <[email protected]> # +# # +# Improvements and feedback are welcome # +# # +# Released under GNU GPL v2 or greater. # +# # +########################################### + +### Header and library directories ######## +# +include_directories( + ${CMAKE_SOURCE_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/tdecore + ${CMAKE_BINARY_DIR}/tdecore + ${CMAKE_SOURCE_DIR}/tdehtml + ${CMAKE_SOURCE_DIR}/tdeui + ${CMAKE_SOURCE_DIR}/tdeutils + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/md4c/src +) + +include_directories( SYSTEM + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${TDE_LIB_DIR} +) + + +### Build libtdemarkdown (kpart) ########### +# +tde_add_kpart( libtdemarkdown + AUTOMOC + SOURCES + ${CMAKE_CURRENT_SOURCE_DIR}/md4c/src/entity.c + ${CMAKE_CURRENT_SOURCE_DIR}/md4c/src/md4c.c + ${CMAKE_CURRENT_SOURCE_DIR}/md4c/src/md4c-html.c + markdown_part.cpp + LINK + tdeparts-shared tdehtml-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +### Install part .desktop entry ############# +# +tde_create_translated_desktop( + SOURCE markdown_part.desktop + DESTINATION ${SERVICES_INSTALL_DIR} + PO_DIR tdemarkdown-desktops +) + + +### Install XML-GUI ######################### +# +install( + FILES markdown_part.rc + DESTINATION ${DATA_INSTALL_DIR}/tdemarkdown +) |