]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/opentelemetry-cpp/sdk/src/common/CMakeLists.txt
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / sdk / src / common / CMakeLists.txt
1 set(COMMON_SRCS random.cc core.cc global_log_handler.cc)
2 if(WIN32)
3 list(APPEND COMMON_SRCS platform/fork_windows.cc)
4 else()
5 list(APPEND COMMON_SRCS platform/fork_unix.cc)
6 endif()
7
8 add_library(opentelemetry_common ${COMMON_SRCS})
9
10 set_target_properties(opentelemetry_common PROPERTIES EXPORT_NAME common)
11
12 target_link_libraries(
13 opentelemetry_common PUBLIC opentelemetry_api opentelemetry_sdk
14 Threads::Threads)
15
16 install(
17 TARGETS opentelemetry_common
18 EXPORT "${PROJECT_NAME}-target"
19 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
20 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
21 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})