mirror of
https://github.com/ttroy50/cmake-examples.git
synced 2025-12-18 12:14:36 +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]
|
||||
====
|
||||
For modern CMake it is normally recommend to not use a variable for sources and to
|
||||
directly declare the sources in the add_xxx function.
|
||||
For modern CMake it is NOT recommended to use a variable for sources. Insead it is
|
||||
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
|
||||
correct results if you add a new source file.
|
||||
|
||||
@@ -7,8 +7,8 @@ toc::[]
|
||||
# Introduction
|
||||
|
||||
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
|
||||
these would be in sub-projects as described in section 02-sub-projects
|
||||
simplified example showing the library and binary in the same folder. Typically
|
||||
these would be in sub-projects as described in section link:../../02-sub-projects[02-sub-projects]
|
||||
|
||||
The files in this tutorial are below:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user