2007-12-21 17:30:32 +08:00
|
|
|
IF(BUILD_DOC)
|
|
|
|
|
2007-12-21 17:02:24 +08:00
|
|
|
CONFIGURE_FILE(
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
|
|
|
|
)
|
2007-09-28 14:17:36 +08:00
|
|
|
|
2007-12-21 19:29:04 +08:00
|
|
|
SET(examples_targets "")
|
|
|
|
SET(snippets_targets "")
|
|
|
|
|
2007-12-21 18:35:00 +08:00
|
|
|
ADD_SUBDIRECTORY(examples)
|
2007-12-21 17:30:32 +08:00
|
|
|
ADD_SUBDIRECTORY(snippets)
|
|
|
|
|
2007-12-21 19:29:04 +08:00
|
|
|
ADD_CUSTOM_TARGET(
|
|
|
|
run_doxygen
|
|
|
|
ALL
|
|
|
|
COMMAND doxygen
|
|
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
ADD_DEPENDENCIES(run_doxygen all_snippets all_examples)
|
|
|
|
|
2007-12-21 17:30:32 +08:00
|
|
|
ENDIF(BUILD_DOC)
|