Generate documentation using the FindSphinx.cmake module

Signed-off-by: Jeroen Koekkoek <jeroen@koekkoek.nl>
This commit is contained in:
Jeroen Koekkoek 2019-07-31 08:37:41 +02:00
parent 9cf4b97f1a
commit b916f0bfb7
23 changed files with 151 additions and 3503 deletions

View file

@ -83,3 +83,18 @@ install(
if(BUILD_IDLC)
add_subdirectory(xtests)
endif()
if(BUILD_DOCS)
set(DOXYGEN_GENERATE_HTML NO)
set(DOXYGEN_GENERATE_XML YES)
set(DOXYGEN_EXCLUDE_PATTERNS "*/tests/*")
set(DOXYGEN_MACRO_EXPANSION YES)
set(DOXYGEN_PREDEFINED
"__restrict="
"__attribute__="
"__declspec(x)="
"DDS_EXPORT="
"DDS_DEPRECATED_EXPORT=")
find_package(Doxygen REQUIRED)
doxygen_add_docs(ddsc_api_docs "ddsc/include")
endif()