diff --git a/.gitmodules b/.gitmodules index 6b10e5c..644c41f 100644 --- a/.gitmodules +++ b/.gitmodules @@ -4,3 +4,6 @@ [submodule "libs/crow"] path = libs/crow url = https://github.com/CrowCpp/Crow +[submodule "libs/md4c"] + path = libs/md4c + url = https://github.com/mity/md4c.git diff --git a/CMakeLists.txt b/CMakeLists.txt index e265c64..e5a629d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,6 +33,9 @@ else () endif () add_subdirectory(libs/BLT) + +add_subdirectory(libs/md4c) + include_directories(include/) include_directories(${CURL_INCLUDE_DIRS}) include_directories(${SQLite3_INCLUDE_DIRS}) @@ -49,6 +52,8 @@ target_link_libraries(crowsite Crow::Crow) target_link_libraries(crowsite ${CURL_LIBRARIES}) target_link_libraries(crowsite OpenSSL::SSL OpenSSL::Crypto) target_link_libraries(crowsite SQLite::SQLite3) +target_link_libraries(crowsite md4c-html md4c) +target_include_directories(crowsite PRIVATE libs/md4c/src) target_compile_options(crowsite PRIVATE -Wall -Wextra -Wpedantic) if (${ENABLE_ADDRSAN} MATCHES ON) diff --git a/crow_test/webcontent/menu_bar.part b/crow_test/webcontent/menu_bar.part index 3ddddaf..f892e90 100644 --- a/crow_test/webcontent/menu_bar.part +++ b/crow_test/webcontent/menu_bar.part @@ -1,7 +1,7 @@