This repository has been archived on 2020-09-07. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
libs/qad/doc/CMakeLists.txt

18 lines
627 B
CMake

include(CheckIncludeFileCXX)
set(CHECK_INCLUDES "-include stdio.h")
if(WIN32)
set(CHECK_INCLUDES "-include windows.h -include stdio.h")
endif()
check_include_file_cxx("mkdio.h" MARKDOWN_HEADER_MKDIO ${CHECK_INCLUDES})
if (MARKDOWN_HEADER_MKDIO)
add_definitions("-DMARKDOWN_HEADER=\"mkdio.h\"")
endif()
check_include_file_cxx("markdown/markdown.h" MARKDOWN_HEADER_MARKDOWN ${CHECK_INCLUDES})
if (MARKDOWN_HEADER_MARKDOWN)
add_definitions("-DMARKDOWN_HEADER=\"markdown/markdown.h\"")
endif()
find_library(MARKDOWN_LIBRARY markdown)
if (MARKDOWN_LIBRARY)
qad_project(doc "Core" "${MARKDOWN_LIBRARY}")
endif()