Browse Source

Fixed Doxygen.

Ioannis Koutras 14 years ago
parent
commit
66b799d8f1
3 changed files with 33 additions and 4 deletions
  1. 2 0
      CMakeLists.txt
  2. 27 0
      doc/CMakeLists.txt
  3. 4 4
      Doxyfile

+ 2 - 0
CMakeLists.txt

@@ -23,3 +23,5 @@ if (WITH_EXAMPLES)
   add_subdirectory(examples)
 endif (WITH_EXAMPLES)
 
+add_subdirectory(doc)
+

+ 27 - 0
doc/CMakeLists.txt

@@ -0,0 +1,27 @@
+FIND_PACKAGE(Doxygen)
+
+IF(DOXYGEN_FOUND)
+  SET(DOXYGEN_LANGUAGE "English" CACHE STRING "Language used by doxygen")
+  MARK_AS_ADVANCED(DOXYGEN_LANGUAGE)
+
+SET( DOXYGEN_SOURCE_DIR
+  "${CMAKE_SOURCE_DIR}/include ${CMAKE_SOURCE_DIR}/private-include ${CMAKE_SOURCE_DIR}/src"
+)
+
+STRING(REGEX REPLACE ";" " " CMAKE_DOXYGEN_INPUT_LIST "${DOXYGEN_SOURCE_DIR}")
+
+SET(DOXYGEN_OUTPUT_DIR html)
+
+CONFIGURE_FILE(Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile)
+
+SET(HTML_TARGET "html" )
+
+ADD_CUSTOM_TARGET(${HTML_TARGET} ALL
+  ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
+  DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
+)
+
+ELSE(DOXYGEN_FOUND)
+  MESSAGE (FATAL_ERROR "doxygen binary couldn't be found")
+ENDIF(DOXYGEN_FOUND)
+

+ 4 - 4
Doxyfile

@@ -118,7 +118,7 @@ INLINE_INHERITED_MEMB  = NO
 # path before files name in the file list and in the header files. If set
 # to NO the shortest path that makes the file name unique will be used.
 
-FULL_PATH_NAMES        = YES
+FULL_PATH_NAMES        = NO
 
 # If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag
 # can be used to strip a user-defined part of the path. Stripping is
@@ -610,7 +610,7 @@ WARN_LOGFILE           =
 # directories like "/usr/src/myproject". Separate the files or directories
 # with spaces.
 
-INPUT                  =
+INPUT                  = @CMAKE_DOXYGEN_INPUT_LIST@
 
 # This tag can be used to specify the character encoding of the source files
 # that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is
@@ -628,13 +628,13 @@ INPUT_ENCODING         = UTF-8
 # *.hxx *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.dox *.py
 # *.f90 *.f *.for *.vhd *.vhdl
 
-FILE_PATTERNS          =
+FILE_PATTERNS          = *.c *.h
 
 # The RECURSIVE tag can be used to turn specify whether or not subdirectories
 # should be searched for input files as well. Possible values are YES and NO.
 # If left blank NO is used.
 
-RECURSIVE              = NO
+RECURSIVE              = YES
 
 # The EXCLUDE tag can be used to specify files and/or directories that should
 # excluded from the INPUT source files. This way you can easily exclude a