-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
3,353 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -117,3 +117,4 @@ endif () | |
enable_testing() | ||
add_subdirectory(tests) | ||
add_subdirectory(examples) | ||
add_subdirectory(doc) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Oops, something went wrong.