mirror of
https://github.com/ttroy50/cmake-examples.git
synced 2025-12-18 20:24:35 +03:00
fix some typos
This commit is contained in:
@@ -84,21 +84,10 @@ file(GLOB SOURCES "src/*.cpp")
|
|||||||
====
|
====
|
||||||
|
|
||||||
|
|
||||||
[NOTE]
|
|
||||||
====
|
|
||||||
An alternative to setting specific file names in the +SOURCES+ variable is
|
|
||||||
to use a GLOB command to find files using wildcard pattern matching.
|
|
||||||
|
|
||||||
[source,cmake]
|
|
||||||
----
|
|
||||||
file(GLOB SOURCES "src/*.cpp")
|
|
||||||
----
|
|
||||||
====
|
|
||||||
|
|
||||||
[TIP]
|
[TIP]
|
||||||
====
|
====
|
||||||
For modern CMake it is normally recommend to not use a variable for sources and to
|
For modern CMake it is NOT recommended to use a variable for sources. Insead it is
|
||||||
directly declare the sources in the add_xxx function.
|
typical to directly declare the sources in the add_xxx function.
|
||||||
|
|
||||||
This is particularly important for glob commands which may not always show you the
|
This is particularly important for glob commands which may not always show you the
|
||||||
correct results if you add a new source file.
|
correct results if you add a new source file.
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ toc::[]
|
|||||||
# Introduction
|
# Introduction
|
||||||
|
|
||||||
Shows a hello world example which first creates and links a static library. This is a
|
Shows a hello world example which first creates and links a static library. This is a
|
||||||
simplified example showing the libray and binary in the same folder. Typically
|
simplified example showing the library and binary in the same folder. Typically
|
||||||
these would be in sub-projects as described in section 02-sub-projects
|
these would be in sub-projects as described in section link:../../02-sub-projects[02-sub-projects]
|
||||||
|
|
||||||
The files in this tutorial are below:
|
The files in this tutorial are below:
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ https://cmake.org/[CMake] is a cross-platform open-source meta-build system whic
|
|||||||
can build, test and package software. It can be used to support multiple native build environments including
|
can build, test and package software. It can be used to support multiple native build environments including
|
||||||
make, Apple's xcode and Microsoft Visual Studio.
|
make, Apple's xcode and Microsoft Visual Studio.
|
||||||
|
|
||||||
This repository includes some example CMake configurations which I have picked up
|
This repository includes some example modern CMake configurations which I have picked up
|
||||||
when exploring it's usage for various projects. The examples are laid out in a tutorial like format.
|
when exploring it's usage for various projects. The examples are laid out in a tutorial like format.
|
||||||
The first examples are very basic and slowly increase in complexity drawing on previous examples to show
|
The first examples are very basic and slowly increase in complexity drawing on previous examples to show
|
||||||
more complex use cases.
|
more complex use cases.
|
||||||
|
|||||||
Reference in New Issue
Block a user