| 1 |
cmake_minimum_required(VERSION 3.10) |
| 2 |
project(MacRuntimePath_B) |
| 3 |
|
| 4 |
include(${MacRuntimePath_B_BINARY_DIR}/../Root/lib/exp.cmake) |
| 5 |
|
| 6 |
add_executable(testb ${MacRuntimePath_B_SOURCE_DIR}/../A/test3.cpp) |
| 7 |
|
| 8 |
# test link with rpath enabled targets |
| 9 |
target_link_libraries(testb shared framework) |
| 10 |
|
| 11 |
# test link with rpath enabled library by filename |
| 12 |
find_library(fw2 NAMES framework2 HINTS ${MacRuntimePath_B_BINARY_DIR}/../Root/lib-fw2) |
| 13 |
target_link_libraries(testb $<TARGET_LINKER_FILE:shared2> ${fw2}) |
| 14 |
|
| 15 |
add_custom_target(testb_run ALL |
| 16 |
COMMAND testb |
| 17 |
DEPENDS testb |
| 18 |
) |