]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/tre/CMakeLists.txt
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / tools / vcpkg / ports / tre / CMakeLists.txt
diff --git a/ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/tre/CMakeLists.txt b/ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/tre/CMakeLists.txt
new file mode 100644 (file)
index 0000000..09113fc
--- /dev/null
@@ -0,0 +1,37 @@
+cmake_minimum_required (VERSION 3.9)
+project (tre)
+
+set (HEADERS
+    lib/regex.h
+    include/tre/tre.h
+    include/tre/tre-config.h
+)
+
+set (SRCS
+    lib/regcomp.c
+    lib/regerror.c
+    lib/regexec.c
+    lib/tre-ast.c
+    lib/tre-compile.c
+    lib/tre-match-approx.c
+    lib/tre-match-backtrack.c
+    lib/tre-match-parallel.c
+    lib/tre-mem.c
+    lib/tre-parse.c
+    lib/tre-stack.c
+    lib/xmalloc.c
+    win32/tre.def
+)
+
+include_directories(win32 include/tre)
+add_definitions(-D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_WARNINGS -DHAVE_CONFIG_H)
+add_library(tre ${SRCS})
+
+install(
+  TARGETS tre
+  RUNTIME DESTINATION bin
+  LIBRARY DESTINATION lib
+  ARCHIVE DESTINATION lib
+)
+
+install(FILES ${HEADERS} DESTINATION include/tre)