From 00393a40e5fdddd99c39106a0082d5f4b9b0315c Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 26 Sep 2021 16:27:19 +0300 Subject: add Doxygen docs --- CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index b4b277b..2f6d476 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,3 +23,12 @@ if(WINAPI_UTF8_TESTS) endif() install(FILES LICENSE.txt DESTINATION share) + +find_package(Doxygen) +if(DOXYGEN_FOUND) + set(DOXYGEN_USE_MDFILE_AS_MAINPAGE README.md) + set(DOXYGEN_SOURCE_BROWSER YES) + set(DOXYGEN_INCLUDE_GRAPH NO) + set(DOXYGEN_INCLUDED_BY_GRAPH NO) + doxygen_add_docs(docs README.md ${winapi_utf8_include} ${winapi_utf8_src}) +endif() -- cgit v1.2.3