2020-05-06 00:47:20 +00:00
|
|
|
# Add all the warnings to the files
|
|
|
|
if( COMPILER_SUPPORTS_WARNINGS )
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${WARN_FLAGS_CXX}")
|
|
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${WARN_FLAGS_C}")
|
2019-10-01 16:38:54 +00:00
|
|
|
endif()
|
2019-10-01 15:03:00 +00:00
|
|
|
|
|
|
|
include_directories( BEFORE ${INC_BEFORE} ${INC_AFTER} )
|
2019-10-01 16:38:54 +00:00
|
|
|
|
2019-11-15 19:16:26 +00:00
|
|
|
set( SUNDOWN_SRC
|
|
|
|
md_parser/markdown.c
|
|
|
|
md_parser/stack.c
|
|
|
|
md_parser/buffer.c
|
|
|
|
md_parser/autolink.c
|
|
|
|
)
|
2019-10-01 16:38:54 +00:00
|
|
|
|
2019-11-15 19:16:26 +00:00
|
|
|
set( SUNDOWN_SRC_HTML
|
|
|
|
html_formatter/html.c
|
|
|
|
html_formatter/html_smartypants.c
|
|
|
|
html_formatter/houdini_html_e.c
|
|
|
|
html_formatter/houdini_href_e.c
|
|
|
|
)
|
2019-10-01 16:38:54 +00:00
|
|
|
|
2019-11-15 19:16:26 +00:00
|
|
|
add_library(markdown_lib STATIC
|
|
|
|
markdown2html.cpp
|
|
|
|
${SUNDOWN_SRC}
|
|
|
|
${SUNDOWN_SRC_HTML}
|
|
|
|
)
|
2019-10-01 16:38:54 +00:00
|
|
|
|
2019-11-15 19:16:26 +00:00
|
|
|
target_include_directories( markdown_lib PRIVATE md_parser html_formatter )
|