]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Update
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 19 Sep 2012 14:34:43 +0000 (14:34 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 19 Sep 2012 14:34:43 +0000 (14:34 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_cmake@26509 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/CMakeLists.txt
deal.II/cmake-TODO
deal.II/examples/CMakeLists.txt

index 2b9d7b4a2009956068b0d77d1675c686e15251f6..dfed6794d6c649b8940b6e28894744555e1e0f40 100644 (file)
@@ -11,7 +11,7 @@ SET(VERSION "8.0.pre")
 # Note: All further explained options can be either set via ccmake or at
 # the promp via:
 #
-#  $ cmake -D<OPTION>=<VALUE> [...] path/to/source/tree
+#   $ cmake -D<OPTION>=<VALUE> [...] path/to/source/tree
 #
 #
 # The first bunch of options of type DEAL_II_WITH_<feature> are for
@@ -83,14 +83,25 @@ SET(VERSION "8.0.pre")
 #     CMAKE_CXX_FLAGS_RELEASE -  additional flags used during release builds
 #     (same for CMAKE_C_...)
 #
-#  The content of the cached variables will be preserved and added
-#  *_TO THE END_* of the default compiler flags, hence giving a possibility
-#  for overwriting a flag. E.g.: -Wsign-compare, set by the build system,
-#  can be overwritten by specifying:
+# The content of the cached variables will be preserved and added
+# *_TO THE END_* of the default compiler flags, hence giving a possibility
+# for overwriting a flag. E.g.: -Wsign-compare, set by the build system,
+# can be overwritten by specifying:
 #
-#  $ cmake -DCMAKE_CXX_FLAGS="-Wno-sign-compare" <...>
+#   $ cmake -DCMAKE_CXX_FLAGS="-Wno-sign-compare" <...>
 #
 #
+# Build optoins: TODO
+#
+# - BUILD_SHARED_LIBS and DEAL_II_SETUP_DEFAULT_COMPILER_FLAGS
+#
+# Installation: TODO
+#
+# - Explain Components and Options...
+# - Explain how to build and install only a specific component:
+#
+#   $ cmake -DCOMPONENT=<component> -P build/cmake_install.cmake
+#
 
 
 
@@ -106,6 +117,9 @@ SET(VERSION "8.0.pre")
 # is a choice, e.g. from contrib vs external)
 #
 
+# TODO: Some of the description strings span over multiple lines. Fix
+# this somehow.
+
 OPTION(DEAL_II_FEATURE_AUTODETECTION
   "Enables feature autodetection. This will automatically overwrite all
   DEAL_II_WITH_<...> toggles depending on whether they can be supported or
@@ -128,6 +142,11 @@ OPTION(DEAL_II_WITH_BLAS
   "Build deal.II with support for BLAS."
   OFF)
 
+OPTION(DEAL_II_WITH_DOXYGEN
+  "Enable the generation and installation of the documentation via doxygen.
+  This feature adds a COMPONENT \"documentation\" to the build system."
+  ON)
+
 OPTION(DEAL_II_WITH_FUNCTIONPARSER
   "Build deal.II with support for functionparser."
   OFF)
@@ -182,7 +201,7 @@ OPTION(DEAL_II_FORCE_CONTRIB_BOOST
   ON)
 
 #
-# Build configuration: Configuration options regarding compilation and
+# Build configuration: configuration options regarding compilation and
 # installation of the deal.II library
 #
 
@@ -192,6 +211,16 @@ OPTION(DEAL_II_SETUP_DEFAULT_COMPILER_FLAGS
   compiler flag setup."
   ON)
 
+OPTION(DEAL_II_INSTALL_EXAMPLES
+  "Enable the installation of the example steps.
+  This feature adds a COMPONENT \"examples\" to the build system."
+  ON)
+
+OPTION(DEAL_II_INSTALL_COMPATIBILITY_FILES
+  "Enable the installation of the example steps.
+  This feature adds a COMPONENT \"compatibility_files\" to the build system."
+  ON)
+
 
 ###########################################################################
 #                                                                         #
index 0b7e56b571790dcd17a59bf7eca07a69842d4d7e..27660399ae095be375d753c8404d6695be1f3ed0 100644 (file)
@@ -1,5 +1,7 @@
 TODO:
 
+* Add build and installation of the documentation
+
 * The original decision to have a dedicated p4est/FAST and p4est/DEBUG
   structure is a bit unfortunate and therefor replaced by a FindP4EST
   module that searches libp4est.so and treats this as FAST and
index bb4f969dc6042b197ee42c1a43f5c90aca9eed61..6974cbcad969af917fa894fd7b59e5b55a221c07 100644 (file)
@@ -1,70 +1,34 @@
-#
-# Generate the documentation via doxygen:
-#
+IF(DEAL_II_WITH_DOXYGEN)
+  #
+  # Generate the documentation via doxygen:
+  #
 
+  # TODO
 
-# TODO
+ENDIF(DEAL_II_WITH_DOXYGEN)
 
 
-#
-# Add a rule on how to install the examples:
-#
 
-SET(deal_ii_examples
-  step-1
-  step-2
-  step-3
-  step-4
-  step-5
-  step-6
-  step-7
-  step-8
-  step-9
-  step-10
-  step-11
-  step-12
-  step-13
-  step-14
-  step-15
-  step-16
-  step-17
-  step-18
-  step-19
-  step-20
-  step-21
-  step-22
-  step-23
-  step-24
-  step-25
-  step-26
-  step-27
-  step-28
-  step-29
-  step-30
-  step-31
-  step-32
-  step-33
-  step-34
-  step-35
-  step-36
-  step-37
-  step-38
-  step-39
-  step-40
-  step-41
-  step-42
-  step-43
-  step-44
-  step-45
-  step-46
-  step-47
-  step-48
-  )
+IF(DEAL_II_INSTALL_EXAMPLES)
+  #
+  # Add a rule on how to install the examples:
+  #
 
-FOREACH(step ${deal_ii_examples})
-  INSTALL(DIRECTORY ${step}
-    DESTINATION usr/share/doc/deal.II/examples
-    COMPONENT examples
-    PATTERN "doc" EXCLUDE
+  SET(deal_ii_examples
+    step-1 step-2 step-3 step-4 step-5 step-6 step-7 step-8 step-9
+    step-10 step-11 step-12 step-13 step-14 step-15 step-16 step-17
+    step-18 step-19 step-20 step-21 step-22 step-23 step-24 step-25
+    step-26 step-27 step-28 step-29 step-30 step-31 step-32 step-33
+    step-34 step-35 step-36 step-37 step-38 step-39 step-40 step-41
+    step-42 step-43 step-44 step-45 step-46 step-47 step-48
     )
-ENDFOREACH()
+
+  FOREACH(step ${deal_ii_examples})
+    INSTALL(DIRECTORY ${step}
+      DESTINATION usr/share/doc/deal.II/examples
+      COMPONENT examples
+      PATTERN "doc" EXCLUDE
+      )
+  ENDFOREACH()
+
+ENDIF()

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.