NMEA: sentence ZFI added
[marnav.git] / cmake / Documentation.cmake
blob6c6ebb84c3c8db1c6c169d06a4c92455f20a5d26
1 find_package(Doxygen)
2 if(DOXYGEN_FOUND)
3         if(GIT_REPO_FOUND)
4                 git_authors(GIT_AUTHORS AUTHOR_LIST)
5         else()
6                 message(STATUS "no git repository found, using default authors list")
7                 set(AUTHOR_LIST "Mario Konrad, with help from others")
8         endif()
9         configure_file(
10                 ${CMAKE_CURRENT_SOURCE_DIR}/doc/main.dox.in
11                 ${CMAKE_CURRENT_BINARY_DIR}/doc/main.dox
12                 )
13         configure_file(
14                 ${CMAKE_CURRENT_SOURCE_DIR}/doxygen.conf.in
15                 ${CMAKE_CURRENT_BINARY_DIR}/doxygen.conf
16                 )
17         add_custom_target(doc
18                 COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/doxygen.conf
19                 )
20         add_dependencies(doc tags)
21 endif()