Build: add ARM and aarch64 target architectures
[marnav.git] / cmake / Documentation.cmake
blob1c14603e5f1ac81a2e8c2eb4ab1eb728bafe44ce
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}/src/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 endif()