From 8a0d7891dc50f190422c96bd4f795122b7752152 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sun, 22 Jun 2014 02:32:28 +0000 Subject: [PATCH] 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 --- deal.II/doc/users/CMakeLists.txt.sample2 | 14 +++++++++++--- deal.II/doc/users/CMakeLists.txt.sample3 | 14 +++++++++++--- 2 files changed, 22 insertions(+), 6 deletions(-) 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 -- 2.39.5