blob: 9939b6fb64e9e36514c55c85ac3412eb14d44081 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
cmake_minimum_required(VERSION 3.7)
project(rpath-macho-test CXX)
set(TEST_STRING "" CACHE STRING "")
set(CMAKE_SKIP_INSTALL_RPATH TRUE)
add_library(rpath-macho-backend-lib++ transitive.cpp)
target_compile_definitions(rpath-macho-backend-lib++ PRIVATE "TEST_STRING=\"${TEST_STRING}\"")
add_library(rpath-macho-test-lib lib.cpp)
target_link_libraries(rpath-macho-test-lib PRIVATE rpath-macho-backend-lib++)
add_executable(rpath-macho-test-tool main.cpp)
target_link_libraries(rpath-macho-test-tool PRIVATE rpath-macho-test-lib)
install(TARGETS rpath-macho-backend-lib++ rpath-macho-test-lib rpath-macho-test-tool)
|