summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 09:44:33 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 09:44:33 +0000
commitb196c6498d22e47bb9d0da0153068ec54eac7956 (patch)
tree1a994a492581e93224a7ee6455f5d4e9d2ec8e59 /cmake
parentInitial commit. (diff)
downloadopentracing-cpp-b196c6498d22e47bb9d0da0153068ec54eac7956.tar.xz
opentracing-cpp-b196c6498d22e47bb9d0da0153068ec54eac7956.zip
Adding upstream version 1.6.0.upstream/1.6.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/OpenTracingConfig.cmake12
-rwxr-xr-xcmake/runldconfig4
-rw-r--r--cmake/weak_symbol.cpp3
3 files changed, 19 insertions, 0 deletions
diff --git a/cmake/OpenTracingConfig.cmake b/cmake/OpenTracingConfig.cmake
new file mode 100644
index 0000000..e8f5939
--- /dev/null
+++ b/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/cmake/runldconfig b/cmake/runldconfig
new file mode 100755
index 0000000..bb27afe
--- /dev/null
+++ b/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/cmake/weak_symbol.cpp b/cmake/weak_symbol.cpp
new file mode 100644
index 0000000..902f683
--- /dev/null
+++ b/cmake/weak_symbol.cpp
@@ -0,0 +1,3 @@
+void __attribute((weak)) f();
+
+int main() { return 0; }