]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: Add an option to compile examples as well
authorMatthias Maier <tamiko@43-1.org>
Thu, 9 Mar 2017 22:42:28 +0000 (16:42 -0600)
committerMatthias Maier <tamiko@43-1.org>
Tue, 14 Mar 2017 16:12:49 +0000 (11:12 -0500)
cmake/setup_cached_variables.cmake

index 6ff2fad6ed46e1be593711147c7efef7d940713d..276a219c80466b9527c89242b3e12680a0d39125 100644 (file)
@@ -49,6 +49,7 @@
 #
 #     DEAL_II_WITH_64BIT_INDICES
 #     DEAL_II_DOXYGEN_USE_MATHJAX
+#     DEAL_II_COMPILE_EXAMPLES
 #     DEAL_II_CPACK_BUNDLE_NAME
 #     DEAL_II_CPACK_EXTERNAL_LIBS
 #
@@ -345,6 +346,12 @@ OPTION(DEAL_II_DOXYGEN_USE_MATHJAX
   )
 MARK_AS_ADVANCED(DEAL_II_DOXYGEN_USE_MATHJAX)
 
+OPTION(DEAL_II_COMPILE_EXAMPLES
+  "If set to ON, all configurable example executables will be built and installed as well. If set to OFF, the examples component only installs the source code of example steps."
+  OFF
+  )
+MARK_AS_ADVANCED(DEAL_II_COMPILE_EXAMPLES)
+
 OPTION(DEAL_II_DOXYGEN_USE_ONLINE_MATHJAX
   "If set to ON, doxygen documentation is generated using online (from CDN) mathjax copy"
   ON

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.