]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/modp-base64/CMakeLists.txt
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / tools / vcpkg / ports / modp-base64 / CMakeLists.txt
diff --git a/ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/modp-base64/CMakeLists.txt b/ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/modp-base64/CMakeLists.txt
new file mode 100644 (file)
index 0000000..5a2dffe
--- /dev/null
@@ -0,0 +1,26 @@
+cmake_minimum_required(VERSION 3.8)\r
+project(libmodpbase64 C)\r
+\r
+if(MSVC)\r
+  add_compile_options(/W3 /wd4005 /wd4996 /wd4018 -D_CRT_SECURE_NO_WARNINGS)\r
+endif()\r
+\r
+configure_file(config.h.cmake config.h @ONLY)\r
+\r
+include_directories(. ${SOURCE_PATH}/src ${CMAKE_CURRENT_BINARY_DIR})\r
+\r
+add_library(libmodpbase64 ${SOURCE_PATH}/src/modp_b64.c libmodpbase64.def)\r
+\r
+install(\r
+  TARGETS libmodpbase64\r
+  RUNTIME DESTINATION bin\r
+  LIBRARY DESTINATION lib\r
+  ARCHIVE DESTINATION lib\r
+)\r
+\r
+if(NOT DISABLE_INSTALL_HEADERS)\r
+  install(\r
+    FILES ${SOURCE_PATH}/src/modp_b64.h\r
+    DESTINATION include\r
+  )\r
+endif()\r