-
Notifications
You must be signed in to change notification settings - Fork 65
/
CMakeLinkDirectories.class.st
50 lines (41 loc) · 1.38 KB
/
CMakeLinkDirectories.class.st
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
"
A CMakeLinkDirectories
cmake --help-command link_directories
link_directories
----------------
Specify directories in which the linker will look for libraries.
link_directories(directory1 directory2 ...)
Specify the paths in which the linker should search for libraries.
The command will apply only to targets created after it is called.
Relative paths given to this command are interpreted as relative to
the current source directory, see CMP0015.
Note that this command is rarely necessary. Library locations
returned by find_package() and find_library() are absolute paths.
Pass these absolute library file paths directly to the
target_link_libraries() command. CMake will ensure the linker finds
them.
"
Class {
#name : #CMakeLinkDirectories,
#superclass : #CMakeTemplate,
#instVars : [
'directories'
],
#category : #'CMakeVMMakerSqueak-CMakeTemplates'
}
{ #category : #accessing }
CMakeLinkDirectories >> directories [
| d |
d := directories inject: '' into: [:res :each | res , ' "' , each, '"' ]. "quote each element"
^ d
]
{ #category : #accessing }
CMakeLinkDirectories >> directories: aCollection [
directories := aCollection.
self content:'link_directories (',self directories,')'
]
{ #category : #'initialize-release' }
CMakeLinkDirectories >> initialize [
directories := OrderedCollection with:'foo' with:'bar'.
self content:'link_directories (',self directories,')'
]