]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Document in more detail what one line does and how to extend it.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 22 Jun 2014 02:32:28 +0000 (02:32 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 22 Jun 2014 02:32:28 +0000 (02:32 +0000)
git-svn-id: https://svn.dealii.org/trunk@33068 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/doc/users/CMakeLists.txt.sample2
deal.II/doc/users/CMakeLists.txt.sample3

index fda35efbf6c4816a6041f44c2f509c507a344fa9..e836367199c4eb4b308d162e166ad22999042548 100644 (file)
@@ -8,10 +8,18 @@ FIND_PACKAGE(deal.II 8.0 REQUIRED
 # Set the name of the project and target:
 SET(TARGET "step-1")
 
-# Declare all source files the target consists of:
+# Declare all source files the target consists of. Here, this is only
+# the one step-X.cc file, but as you expand your project you may wish
+# to add other source files as well. If your project becomes much larger,
+# you may want to either replace the following statement by something like
+#    FILE(GLOB_RECURSE TARGET_SRC  "source/*.cc")
+#    FILE(GLOB_RECURSE TARGET_INC  "include/*.h")
+#    SET(TARGET_SRC ${TARGET_SRC}  ${TARGET_INC}) 
+# or switch altogether to the large project CMakeLists.txt file discussed
+# in the "CMake in user projects" page accessible from the "User info"
+# page of the documentation.
 SET(TARGET_SRC
-  step-1.cc
-  # You can specify additional files here!
+  ${TARGET}.cc
   )
 
 CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8)
index 2003f225e92e6a3dd7c21f471d34b00082063834..c0ca621afe128fc0f4c303204b05655b976175d7 100644 (file)
@@ -8,10 +8,18 @@ FIND_PACKAGE(deal.II 8.0 REQUIRED
 # Set the name of the project and target:
 SET(TARGET "step-1")
 
-# Declare all source files the target consists of:
+# Declare all source files the target consists of. Here, this is only
+# the one step-X.cc file, but as you expand your project you may wish
+# to add other source files as well. If your project becomes much larger,
+# you may want to either replace the following statement by something like
+#    FILE(GLOB_RECURSE TARGET_SRC  "source/*.cc")
+#    FILE(GLOB_RECURSE TARGET_INC  "include/*.h")
+#    SET(TARGET_SRC ${TARGET_SRC}  ${TARGET_INC}) 
+# or switch altogether to the large project CMakeLists.txt file discussed
+# in the "CMake in user projects" page accessible from the "User info"
+# page of the documentation.
 SET(TARGET_SRC
-  step-1.cc
-  # You can specify additional files here!
+  ${TARGET}.cc
   )
 
 # Specify a list of files (file globs) that will be removed

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.