mirror of
https://github.com/ttroy50/cmake-examples.git
synced 2025-12-18 12:14:36 +03:00
@@ -15,7 +15,7 @@ set(SOURCES
|
||||
# Add an executable with the above sources
|
||||
add_executable(hello_headers ${SOURCES})
|
||||
|
||||
# Set the direcoties that should be included in the build command for this target
|
||||
# Set the directories that should be included in the build command for this target
|
||||
# when running g++ these will be included as -I/directory/path/
|
||||
target_include_directories(hello_headers
|
||||
PRIVATE
|
||||
|
||||
@@ -46,7 +46,7 @@ add_library(hello_library SHARED
|
||||
----
|
||||
|
||||
This will be used to create a shared library with the name libhello_library.so with
|
||||
the sources passed to teh +add_library()+ function.
|
||||
the sources passed to the +add_library()+ function.
|
||||
|
||||
## Alias Target
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ toc::[]
|
||||
# Introduction
|
||||
|
||||
As previously mentioned in the link:../H-third-party-library[third party library], newer
|
||||
versions of CMake alow you to link third party libraries using link:https://cmake.org/cmake/help/v3.6/prop_tgt/IMPORTED.html#prop_tgt:IMPORTED[imported] +ALIAS+ targets.
|
||||
versions of CMake allow you to link third party libraries using link:https://cmake.org/cmake/help/v3.6/prop_tgt/IMPORTED.html#prop_tgt:IMPORTED[imported] +ALIAS+ targets.
|
||||
|
||||
The files in this tutorial are below:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user