Warning, /pim/kdepim-addons/plugins/messageviewer/bodypartformatter/markdown/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 # SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org>
0002 # SPDX-License-Identifier: BSD-3-Clause
0003 set(mardown_engine_SRCS)
0004 set(discount_LIB)
0005 add_library(messageviewer_bodypartformatter_text_markdown MODULE)
0006 if(USE_DISCOUNT_LIB)
0007     add_definitions(-DUSE_DISCOUNT_LIB)
0008     target_sources(messageviewer_bodypartformatter_text_markdown PRIVATE markdowndiscount.cpp markdowndiscount.h)
0009     target_link_libraries(messageviewer_bodypartformatter_text_markdown discount::Lib)
0010 else()
0011     target_sources(messageviewer_bodypartformatter_text_markdown PRIVATE markdownqtextdocument.cpp markdownqtextdocument.h)
0012 endif()
0013 
0014 add_definitions(-DTRANSLATION_DOMAIN=\"messageviewer_text_markdown_plugin\")
0015 target_sources(messageviewer_bodypartformatter_text_markdown PRIVATE textmarkdownplugin.cpp markdownabstract.cpp markdownabstract.h)
0016 
0017 if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
0018     set_target_properties(messageviewer_bodypartformatter_text_markdown PROPERTIES UNITY_BUILD ON)
0019 endif()
0020 
0021 target_link_libraries(messageviewer_bodypartformatter_text_markdown
0022     Qt::Core
0023     KPim6::MessageViewer
0024     KF6::TextTemplate
0025 )
0026 install(TARGETS messageviewer_bodypartformatter_text_markdown DESTINATION ${KDE_INSTALL_PLUGINDIR}/pim6/messageviewer/bodypartformatter)