Skip to content

Commit

Permalink
Updated doxygen handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Hilton Bristow committed Apr 6, 2013
1 parent e48407f commit 61e7b1c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 1 addition & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,7 @@ add_subdirectory(src)

# build the doxygen pdf
if(BUILD_DOC)
find_package(Doxygen)
configure_file(${PROJECT_SOURCE_DIR}/doc/Doxyfile.in ${PROJECT_SOURCE_DIR}/doc/Doxyfile @ONLY)
add_custom_target(cvmatio_doc ALL ${DOXYGEN_EXECUTABLE} ${PROJECT_SOURCE_DIR}/doc/Doxyfile)
add_subdirectory(doc)
endif()

# configuration summary
Expand Down
7 changes: 7 additions & 0 deletions doc/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
find_package(Doxygen)
if (DOXYGEN_FOUND)
configure_file(${PROJECT_SOURCE_DIR}/doc/Doxyfile.in ${PROJECT_SOURCE_DIR}/doc/Doxyfile @ONLY)
add_custom_target(cvmatio_doc ALL ${DOXYGEN_EXECUTABLE} ${PROJECT_SOURCE_DIR}/doc/Doxyfile)
else()
set(BUILD_DOC OFF PARENT_SCOPE)
endif()

0 comments on commit 61e7b1c

Please sign in to comment.