summaryrefslogtreecommitdiffstats
path: root/src/jaegertracing/opentracing-cpp/cmake
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 18:45:59 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 18:45:59 +0000
commit19fcec84d8d7d21e796c7624e521b60d28ee21ed (patch)
tree42d26aa27d1e3f7c0b8bd3fd14e7d7082f5008dc /src/jaegertracing/opentracing-cpp/cmake
parentInitial commit. (diff)
downloadceph-6d07fdb6bb33b1af39833b850bb6cf8af79fe293.tar.xz
ceph-6d07fdb6bb33b1af39833b850bb6cf8af79fe293.zip
Adding upstream version 16.2.11+ds.upstream/16.2.11+dsupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/jaegertracing/opentracing-cpp/cmake')
-rw-r--r--src/jaegertracing/opentracing-cpp/cmake/OpenTracingConfig.cmake12
-rwxr-xr-xsrc/jaegertracing/opentracing-cpp/cmake/runldconfig4
-rw-r--r--src/jaegertracing/opentracing-cpp/cmake/weak_symbol.cpp3
3 files changed, 19 insertions, 0 deletions
diff --git a/src/jaegertracing/opentracing-cpp/cmake/OpenTracingConfig.cmake b/src/jaegertracing/opentracing-cpp/cmake/OpenTracingConfig.cmake
new file mode 100644
index 000000000..e8f5939c4
--- /dev/null
+++ b/src/jaegertracing/opentracing-cpp/cmake/OpenTracingConfig.cmake
@@ -0,0 +1,12 @@
+# - Locate the opentracing headers and libraries
+# Usage:
+# find_package(OpenTracing)
+# find_package(OpenTracing 0.1.0) # To specify a minimum version
+# This will create the targets:
+# OpenTracing::opentracing # dynamic library
+# OpenTracing::opentracing-static # static library
+#
+# Linking to these libraries will also add the approprate interface header path to your compilation line.
+# e.g. target_link_libraries(newtarget OpenTracing::opentracing)
+
+include("${CMAKE_CURRENT_LIST_DIR}/OpenTracingTargets.cmake")
diff --git a/src/jaegertracing/opentracing-cpp/cmake/runldconfig b/src/jaegertracing/opentracing-cpp/cmake/runldconfig
new file mode 100755
index 000000000..bb27afe8c
--- /dev/null
+++ b/src/jaegertracing/opentracing-cpp/cmake/runldconfig
@@ -0,0 +1,4 @@
+#!/bin/bash
+/sbin/ldconfig
+
+#This sets up the links between shared libraries after installation and uninstallation of RPMs.
diff --git a/src/jaegertracing/opentracing-cpp/cmake/weak_symbol.cpp b/src/jaegertracing/opentracing-cpp/cmake/weak_symbol.cpp
new file mode 100644
index 000000000..902f683ae
--- /dev/null
+++ b/src/jaegertracing/opentracing-cpp/cmake/weak_symbol.cpp
@@ -0,0 +1,3 @@
+void __attribute((weak)) f();
+
+int main() { return 0; }