diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-12-16 23:19:18 +0100 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-12-16 23:19:18 +0100 |
commit | d950d6af5271cd6733db9d47297d6b32de9c23a7 (patch) | |
tree | ee685bfb2443fd20d83464eb51d3b1bbcffcf5f2 | |
parent | 55abcfeef6c20e08b3f6ecaf3539230a93cbf3e2 (diff) | |
download | libssh-d950d6af5271cd6733db9d47297d6b32de9c23a7.tar.gz libssh-d950d6af5271cd6733db9d47297d6b32de9c23a7.tar.xz libssh-d950d6af5271cd6733db9d47297d6b32de9c23a7.zip |
Optional compilation of developper's doc
-rw-r--r-- | DefineOptions.cmake | 1 | ||||
-rw-r--r-- | cmake/Modules/UseDoxygen.cmake | 7 | ||||
-rw-r--r-- | doc/doxy.config.in | 2 |
3 files changed, 9 insertions, 1 deletions
diff --git a/DefineOptions.cmake b/DefineOptions.cmake index fe9d405..21e562e 100644 --- a/DefineOptions.cmake +++ b/DefineOptions.cmake @@ -7,3 +7,4 @@ option(WITH_DEBUG_CRYPTO "Build with cryto debug output" OFF) option(WITH_DEBUG_CALLTRACE "Build with calltrace debug output" ON) option(WITH_GCRYPT "Compile against libgcrypt" OFF) option(WITH_PCAP "Compile with Pcap generation support" ON) +option(WITH_INTERNAL_DOC "Compile doxygen internal documentation" OFF) diff --git a/cmake/Modules/UseDoxygen.cmake b/cmake/Modules/UseDoxygen.cmake index 3eb9490..541dace 100644 --- a/cmake/Modules/UseDoxygen.cmake +++ b/cmake/Modules/UseDoxygen.cmake @@ -30,6 +30,13 @@ IF (DOXYGEN_FOUND) SET(DOXY_WARN_FORMAT "\"$file:$line: $text \"") ENDIF (CMAKE_BUILD_TOOL MATCHES "(msdev|devenv)") + #Build the documentation for libssh developpers if asked + IF (WITH_INTERNAL_DOC) + SET(CMAKE_INTERNAL_DOC "Yes") + ELSE (WITH_INTERNAL_DOC) + SET(CMAKE_INTERNAL_DOC "No") + ENDIF (WITH_INTERNAL_DOC) + # we need latex for doxygen because of the formulas FIND_PACKAGE(LATEX) IF (NOT LATEX_COMPILER) diff --git a/doc/doxy.config.in b/doc/doxy.config.in index 768b5c4..03abd8b 100644 --- a/doc/doxy.config.in +++ b/doc/doxy.config.in @@ -374,7 +374,7 @@ HIDE_IN_BODY_DOCS = NO # to NO (the default) then the documentation will be excluded. # Set it to YES to include the internal documentation. -INTERNAL_DOCS = NO +INTERNAL_DOCS = @CMAKE_INTERNAL_DOC@ # If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate # file names in lower-case letters. If set to YES upper-case letters are also |