Skip to content

Commit

Permalink
Compile md4c into QOwnNotes
Browse files Browse the repository at this point in the history
Ideally QOwnNotes should use the system md4c but its not possible atm.
  • Loading branch information
Waqar144 committed Aug 8, 2024
1 parent 6b4ba28 commit 21ab3cb
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -573,7 +575,6 @@ target_link_libraries(QOwnNotes PRIVATE
Botan::Botan
fakevim
Google::DiffMatchPatch
md4c-html
)

if (USE_QLITEHTML)
Expand Down

0 comments on commit 21ab3cb

Please sign in to comment.