Debian Codegraph @

doc/CMakeLists.txt

raw
1 #
2 # Advanced Simulation Library <http://asl.org.il>
3 #
4 # Copyright 2015 Avtech Scientific <http://avtechscientific.com>
5 #
6 #
7 # This file is part of Advanced Simulation Library (ASL).
8 #
9 # ASL is free software: you can redistribute it and/or modify it
10 # under the terms of the GNU Affero General Public License as
11 # published by the Free Software Foundation, version 3 of the License.
12 #
13 # ASL is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU Affero General Public License for more details.
17 #
18 # You should have received a copy of the GNU Affero General Public License
19 # along with ASL. If not, see <http://www.gnu.org/licenses/>.
20 #
21
22
23 find_package(Doxygen REQUIRED)
24
25 if (DOXYGEN_DOT_FOUND)
26 set(DOXYGEN_HAVE_DOT "YES")
27 else (DOXYGEN_DOT_FOUND)
28 set(DOXYGEN_HAVE_DOT "NO")
29 message(WARNING "Graphviz dot was not found! Class inheritance diagrams in the generated documentation will be limited.")
30 endif (DOXYGEN_DOT_FOUND)
31
32 # Configure Doxyfile
33 configure_file(
34 "${PROJECT_SOURCE_DIR}/doc/Developer-Guide/Doxyfile.in"
35 "${PROJECT_BINARY_DIR}/doc/Developer-Guide/Doxyfile"
36 )
37 add_custom_target(docs ${DOXYGEN_EXECUTABLE} ${PROJECT_BINARY_DIR}/doc/Developer-Guide/Doxyfile)
38 install(CODE "execute_process(COMMAND ${CMAKE_BUILD_TOOL} docs)")
39 install(DIRECTORY ${CMAKE_BINARY_DIR}/doc/html DESTINATION ${CMAKE_INSTALL_DOCDIR})