From 21ab3cb9a2627bb07eda1722e27a1b7fe1b64bee Mon Sep 17 00:00:00 2001 From: Waqar Ahmed Date: Thu, 8 Aug 2024 13:17:18 +0500 Subject: [PATCH] Compile md4c into QOwnNotes Ideally QOwnNotes should use the system md4c but its not possible atm. --- src/CMakeLists.txt | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index abc13943dc..1780e1dc13 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -27,11 +27,6 @@ include_directories(libraries/sonnet/src/core) #some hunspell settings for windows include(libraries/sonnet/src/plugins/hunspell/hunspell/CMakeLists.txt) -# noneed for md2html -set(BUILD_MD2HTML_EXECUTABLE FALSE) -set(BUILD_SHARED_LIBS OFF) -add_subdirectory(libraries/md4c EXCLUDE_FROM_ALL) - add_executable(QOwnNotes "") if (CMAKE_BUILD_TYPE MATCHES Debug) @@ -475,6 +470,13 @@ list(APPEND SOURCE_FILES libraries/sonnet/src/plugins/hunspell/hunspell/src/parsers/xmlparser.hxx ) +# md4c +list(APPEND SOURCE_FILES + libraries/md4c/src/md4c.c + libraries/md4c/src/md4c-html.c + libraries/md4c/src/entity.c +) + # Translation files SET(QON_TS_FILES languages/QOwnNotes_en.ts @@ -573,7 +575,6 @@ target_link_libraries(QOwnNotes PRIVATE Botan::Botan fakevim Google::DiffMatchPatch - md4c-html ) if (USE_QLITEHTML)