annotate doc/CMakeLists.txt @ 665:69dd092e2512

Free folder name obtained by shgetknownfolder
author Andre Heinecke <andre.heinecke@intevation.de>
date Wed, 25 Jun 2014 16:07:32 +0200
parents 35d6b371ba63
children
rev   line source
405
35d6b371ba63 Add License header for CMake and shell scripts
Andre Heinecke <aheinecke@intevation.de>
parents: 24
diff changeset
1 # Copyright (C) 2014 by Bundesamt für Sicherheit in der Informationstechnik
35d6b371ba63 Add License header for CMake and shell scripts
Andre Heinecke <aheinecke@intevation.de>
parents: 24
diff changeset
2 # Software engineering by Intevation GmbH
35d6b371ba63 Add License header for CMake and shell scripts
Andre Heinecke <aheinecke@intevation.de>
parents: 24
diff changeset
3 #
35d6b371ba63 Add License header for CMake and shell scripts
Andre Heinecke <aheinecke@intevation.de>
parents: 24
diff changeset
4 # This file is Free Software under the GNU GPL (v>=2)
35d6b371ba63 Add License header for CMake and shell scripts
Andre Heinecke <aheinecke@intevation.de>
parents: 24
diff changeset
5 # and comes with ABSOLUTELY NO WARRANTY!
35d6b371ba63 Add License header for CMake and shell scripts
Andre Heinecke <aheinecke@intevation.de>
parents: 24
diff changeset
6 # See LICENSE.txt for details.
35d6b371ba63 Add License header for CMake and shell scripts
Andre Heinecke <aheinecke@intevation.de>
parents: 24
diff changeset
7
24
de67047ca229 Add documentation generation
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
8 include (FindDoxygen)
de67047ca229 Add documentation generation
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
9
de67047ca229 Add documentation generation
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
10 set_directory_properties (PROPERTIES CLEAN_NO_CUSTOM true)
de67047ca229 Add documentation generation
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
11 set_directory_properties (PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES ".built-html")
de67047ca229 Add documentation generation
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
12
de67047ca229 Add documentation generation
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
13 if (NOT DOXYGEN_EXECUTABLE)
de67047ca229 Add documentation generation
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
14 message (STATUS "WARNING: Doxygen is required to build the docs.")
de67047ca229 Add documentation generation
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
15 else()
de67047ca229 Add documentation generation
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
16 add_custom_target (doc COMMENT "Building documentation..."
de67047ca229 Add documentation generation
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
17 DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile ${CMAKE_CURRENT_BINARY_DIR}/.built-html)
de67047ca229 Add documentation generation
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
18 endif()
de67047ca229 Add documentation generation
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
19
de67047ca229 Add documentation generation
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
20 add_custom_command (OUTPUT .built-html
de67047ca229 Add documentation generation
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
21 COMMAND sh
de67047ca229 Add documentation generation
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
22 ARGS -c \"${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile && touch ${CMAKE_CURRENT_BINARY_DIR}/.built-html\;\"
de67047ca229 Add documentation generation
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
23 ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
de67047ca229 Add documentation generation
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
24 )

http://wald.intevation.org/projects/trustbridge/