1 set(COMMON_SRCS random.cc core.cc global_log_handler.cc)
3 list(APPEND COMMON_SRCS platform/fork_windows.cc)
5 list(APPEND COMMON_SRCS platform/fork_unix.cc)
8 add_library(opentelemetry_common ${COMMON_SRCS})
10 set_target_properties(opentelemetry_common PROPERTIES EXPORT_NAME common)
12 target_link_libraries(
13 opentelemetry_common PUBLIC opentelemetry_api opentelemetry_sdk
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})