summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Lotterbach <timo.lotterbach@bmw-carit.de>2013-03-14 04:34:09 -0700
committerTimo Lotterbach <timo.lotterbach@bmw-carit.de>2013-03-14 05:03:40 -0700
commita20d6592cfed2f9c74179786524964fb32af889c (patch)
treef84678f9f564103008c66f86a27a747d434a5fb2
parentb54d40eb4f21f0f3de2b5ef35e7b0b2474a75f35 (diff)
downloadlayer_management-a20d6592cfed2f9c74179786524964fb32af889c.tar.gz
CMake: added WITH_DOCUMENTATION build flag
using the build flag WITH_DOCUMENTATION the generation of the specification document can be enabled during LayerManagement builds. this is useful for cross-checking the documentation during code updates. a make target 'doc' is generated, so calling 'make doc' results in generation of the specification PDF. Signed-off-by: Timo Lotterbach <timo.lotterbach@bmw-carit.de>
-rw-r--r--CMakeLists.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c099e04..da4bd73 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -55,6 +55,19 @@ endif (WITH_STYLE_CHECKING)
add_custom_target(check-style COMMAND ${CMAKE_SOURCE_DIR}/scripts/check_style.sh)
#===========================================================================================================
+build_flag (WITH_DOCUMENTATION "Generate documentation during build (requires doxygen)" OFF)
+#===========================================================================================================
+if (WITH_DOCUMENTATION)
+ add_custom_target(doc ALL
+ COMMAND ${CMAKE_SOURCE_DIR}/generate_specification.sh
+ WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
+else (WITH_DOCUMENTATION)
+ add_custom_target(doc
+ COMMAND ${CMAKE_SOURCE_DIR}/generate_specification.sh
+ WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
+endif (WITH_DOCUMENTATION)
+
+#===========================================================================================================
build_flag (WITH_TESTS "Build unit test binaries for all enabled components" OFF)
#===========================================================================================================
if (WITH_TESTS)