]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Push down evaluating GLOBS to the file where it is actually needed.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 22 Oct 2015 21:41:15 +0000 (16:41 -0500)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Sun, 25 Oct 2015 18:32:36 +0000 (13:32 -0500)
doc/doxygen/tutorial/CMakeLists.txt

index fd6a00656272ce8ed10e20b3325a1527cab88e76..ce580950a5c572dd7ecc67d57032888d4779e3c5 100644 (file)
 ## ---------------------------------------------------------------------
 
 
+
+FILE(GLOB _deal_ii_steps
+  ${CMAKE_SOURCE_DIR}/examples/step-*
+  )
+
 #
 # Define target for the tutorial. It depends on the
 # file tutorial.h built via the next target below, as well
@@ -31,13 +36,13 @@ ADD_CUSTOM_TARGET(tutorial)
 # Describe how to build tutorial.h:
 #
 
-file(GLOB DEAL_II_STEPS_BUILDSON
+file(GLOB _deal_ii_steps_buildson
   ${CMAKE_SOURCE_DIR}/examples/step-*/doc/builds-on
   )
-file(GLOB DEAL_II_STEPS_KIND
+file(GLOB _deal_ii_steps_kind
   ${CMAKE_SOURCE_DIR}/examples/step-*/doc/kind
   )
-file(GLOB DEAL_II_STEPS_TOOLTIP
+file(GLOB _deal_ii_steps_tooltip
   ${CMAKE_SOURCE_DIR}/examples/step-*/doc/tooltip
   )
 
@@ -47,13 +52,13 @@ ADD_CUSTOM_COMMAND(
   ARGS
     ${CMAKE_SOURCE_DIR}/doc/doxygen/scripts/steps.pl
     ${CMAKE_CURRENT_SOURCE_DIR}/tutorial.h.in
-    ${DEAL_II_STEPS}
+    ${_deal_ii_steps}
     > ${CMAKE_CURRENT_BINARY_DIR}/tutorial.h
   DEPENDS
-    ${DEAL_II_STEPS}
-    ${DEAL_II_STEPS_BUILDSON}
-    ${DEAL_II_STEPS_KIND}
-    ${DEAL_II_STEPS_TOOLTIP}
+    ${_deal_ii_steps}
+    ${_deal_ii_steps_kind}
+    ${_deal_ii_steps_tooltip}
+    ${_deal_ii_steps_buildson}
     ${CMAKE_CURRENT_SOURCE_DIR}/tutorial.h.in
   )
 ADD_CUSTOM_TARGET(build_tutorial_h
@@ -65,7 +70,7 @@ ADD_DEPENDENCIES(tutorial build_tutorial_h)
 # Prepare the steps for documentation generation
 #
 
-FOREACH(_step ${DEAL_II_STEPS})
+FOREACH(_step ${_deal_ii_steps})
   GET_FILENAME_COMPONENT(_step "${_step}" NAME)
 
   ADD_CUSTOM_COMMAND(

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.