Skip to content

Commit

Permalink
Added Doxygen configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ddemidov committed Jun 8, 2014
1 parent 61ad432 commit 3c6c784
Show file tree
Hide file tree
Showing 4 changed files with 3,353 additions and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,4 @@ endif ()
enable_testing()
add_subdirectory(tests)
add_subdirectory(examples)
add_subdirectory(doc)
29 changes: 29 additions & 0 deletions doc/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
cmake_minimum_required(VERSION 2.6)
project(doc)

find_package(LATEX QUIET)
find_package(Doxygen QUIET)

if (LATEX_COMPILER AND DOXYGEN_FOUND)
option(DOC_BUILD_CHM "Build documentaion in chm format")

set(DOXYGEN_INPUT_DIR ${CMAKE_SOURCE_DIR})
set(DOXYGEN_OUTPUT_DIR ${CMAKE_CURRENT_BINARY_DIR})

set(SOURCE_BROWSER NO)

if (DOC_BUILD_CHM)
set(GENERATE_HTMLHELP YES)
endif (DOC_BUILD_CHM)

configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.cmake
${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
)

add_custom_target(doc
COMMAND rm -f ${CMAKE_CURRENT_BINARY_DIR}/html/*
COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
COMMENT "Build Doxygen-generated documentation"
)
endif(LATEX_COMPILER AND DOXYGEN_FOUND)
Loading

0 comments on commit 3c6c784

Please sign in to comment.