Merge pull request #225 from k0ekk0ek/documentation

Generate documentation using the FindSphinx.cmake module
This commit is contained in:
Jeroen Koekkoek 2019-08-02 14:10:58 +02:00 committed by GitHub
commit 15e68152c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 154 additions and 3506 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()