From: Wolfgang Bangerth Date: Sun, 22 Jun 2014 02:32:28 +0000 (+0000) Subject: Document in more detail what one line does and how to extend it. X-Git-Tag: v8.2.0-rc1~370 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a0d7891dc50f190422c96bd4f795122b7752152;p=dealii.git Document in more detail what one line does and how to extend it. git-svn-id: https://svn.dealii.org/trunk@33068 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/doc/users/CMakeLists.txt.sample2 b/deal.II/doc/users/CMakeLists.txt.sample2 index fda35efbf6..e836367199 100644 --- a/deal.II/doc/users/CMakeLists.txt.sample2 +++ b/deal.II/doc/users/CMakeLists.txt.sample2 @@ -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) diff --git a/deal.II/doc/users/CMakeLists.txt.sample3 b/deal.II/doc/users/CMakeLists.txt.sample3 index 2003f225e9..c0ca621afe 100644 --- a/deal.II/doc/users/CMakeLists.txt.sample3 +++ b/deal.II/doc/users/CMakeLists.txt.sample3 @@ -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