aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/scripts/test_ports/rpath-macho-test-binaries/project
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/scripts/test_ports/rpath-macho-test-binaries/project
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/scripts/test_ports/rpath-macho-test-binaries/project')
-rw-r--r--vcpkg/scripts/test_ports/rpath-macho-test-binaries/project/CMakeLists.txt17
-rw-r--r--vcpkg/scripts/test_ports/rpath-macho-test-binaries/project/lib.cpp6
-rw-r--r--vcpkg/scripts/test_ports/rpath-macho-test-binaries/project/main.cpp8
-rw-r--r--vcpkg/scripts/test_ports/rpath-macho-test-binaries/project/transitive.cpp4
4 files changed, 35 insertions, 0 deletions
diff --git a/vcpkg/scripts/test_ports/rpath-macho-test-binaries/project/CMakeLists.txt b/vcpkg/scripts/test_ports/rpath-macho-test-binaries/project/CMakeLists.txt
new file mode 100644
index 0000000..9939b6f
--- /dev/null
+++ b/vcpkg/scripts/test_ports/rpath-macho-test-binaries/project/CMakeLists.txt
@@ -0,0 +1,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)
diff --git a/vcpkg/scripts/test_ports/rpath-macho-test-binaries/project/lib.cpp b/vcpkg/scripts/test_ports/rpath-macho-test-binaries/project/lib.cpp
new file mode 100644
index 0000000..3727a06
--- /dev/null
+++ b/vcpkg/scripts/test_ports/rpath-macho-test-binaries/project/lib.cpp
@@ -0,0 +1,6 @@
+extern const char* getTestStringBackend();
+
+const char* getTestString()
+{
+ return getTestStringBackend();
+}
diff --git a/vcpkg/scripts/test_ports/rpath-macho-test-binaries/project/main.cpp b/vcpkg/scripts/test_ports/rpath-macho-test-binaries/project/main.cpp
new file mode 100644
index 0000000..7253b5a
--- /dev/null
+++ b/vcpkg/scripts/test_ports/rpath-macho-test-binaries/project/main.cpp
@@ -0,0 +1,8 @@
+#include <stdio.h>
+
+extern const char* getTestString();
+
+int main()
+{
+ puts(getTestString());
+}
diff --git a/vcpkg/scripts/test_ports/rpath-macho-test-binaries/project/transitive.cpp b/vcpkg/scripts/test_ports/rpath-macho-test-binaries/project/transitive.cpp
new file mode 100644
index 0000000..ab1ca00
--- /dev/null
+++ b/vcpkg/scripts/test_ports/rpath-macho-test-binaries/project/transitive.cpp
@@ -0,0 +1,4 @@
+const char* getTestStringBackend()
+{
+ return TEST_STRING;
+}