Mercurial > clickerconvert
comparison doc/CMakeLists.txt @ 0:49cd5cc0b072
Initial commit of project template (based on RetraceIT)
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Mon, 07 Mar 2016 17:35:09 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:49cd5cc0b072 |
---|---|
1 # Copyright (C) 2014 by Bundesamt für Sicherheit in der Informationstechnik | |
2 # Software engineering by Intevation GmbH | |
3 # | |
4 # This file is Free Software under the GNU GPL (v>=2) | |
5 # and comes with ABSOLUTELY NO WARRANTY! | |
6 # See LICENSE.txt for details. | |
7 | |
8 include (FindDoxygen) | |
9 | |
10 set_directory_properties (PROPERTIES CLEAN_NO_CUSTOM true) | |
11 set_directory_properties (PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES ".built-html") | |
12 | |
13 if (NOT DOXYGEN_EXECUTABLE) | |
14 message (STATUS "WARNING: Doxygen is required to build the docs.") | |
15 else() | |
16 add_custom_target (doc COMMENT "Building documentation..." | |
17 DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile ${CMAKE_CURRENT_BINARY_DIR}/.built-html) | |
18 endif() | |
19 | |
20 add_custom_command (OUTPUT .built-html | |
21 COMMAND sh | |
22 ARGS -c \"${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile && touch ${CMAKE_CURRENT_BINARY_DIR}/.built-html\;\" | |
23 ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile | |
24 ) |