blob: 152238a30d08e070fbbb533fc73b7657146202b6 (
plain)
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
|
enable_language(C)
add_library(A STATIC A.c)
add_executable(buildge main.c)
target_link_libraries(buildge A)
set_target_properties(buildge PROPERTIES
BUILD_RPATH $<1:/opt/foo/lib>
)
add_executable(buildnoge main.c)
target_link_libraries(buildnoge A)
set_target_properties(buildnoge PROPERTIES
BUILD_RPATH /opt/foo/lib
)
add_executable(installge main.c)
target_link_libraries(installge A)
set_target_properties(installge PROPERTIES
INSTALL_RPATH $<1:/opt/foo/lib>
BUILD_WITH_INSTALL_RPATH 1
)
add_executable(installnoge main.c)
target_link_libraries(installnoge A)
set_target_properties(installnoge PROPERTIES
INSTALL_RPATH /opt/foo/lib
BUILD_WITH_INSTALL_RPATH 1
)
|