From 3db4157cac46d1aa7183bd0df62d7dd605178a95 Mon Sep 17 00:00:00 2001 From: Thom Troy Date: Tue, 1 Dec 2015 11:40:02 +0000 Subject: [PATCH] Update toc and headings #3 --- 03-code-generation/configure-files/README.adoc | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/03-code-generation/configure-files/README.adoc b/03-code-generation/configure-files/README.adoc index 44458b1..d1a7c7f 100644 --- a/03-code-generation/configure-files/README.adoc +++ b/03-code-generation/configure-files/README.adoc @@ -1,14 +1,10 @@ = Configure Files Generation - :toc: :toc-placement!: toc::[] - -[[intro]] -Introduction ------------- +# Introduction During the call to cmake it is possible to create files that use variables from the CMakeLists.txt and cmake cache. During CMake generation the file is copied to a @@ -30,13 +26,9 @@ $ tree * path.h.in - File to contain a path to the build directory * ver.h.in - File to contain the version of the project -[[concepts]] -Concepts -~~~~~~~~ +# Concepts -[[configure_files]] -Configure Files -^^^^^^^^^^^^^^^ +## Configure Files To do variable substitution in a file you can use the `configure_file()` function in CMake. This core arguments for this function are source file and destination file. @@ -63,9 +55,7 @@ After generation a new file path.h will be available in the `PROJECT_BINARY_DIR` const char* path = "@CMAKE_SOURCE_DIR@"; ``` -[[building-the-example]] -Building the Example -~~~~~~~~~~~~~~~~~~~~ +# Building the Example [source,bash] ----