2
0

CMakeLists.txt 584 B

12345678910111213141516
  1. # Copyright The OpenTelemetry Authors
  2. # SPDX-License-Identifier: Apache-2.0
  3. if(BUILD_TESTING)
  4. add_library(opentelemetry_test_common INTERFACE)
  5. target_include_directories(
  6. opentelemetry_test_common
  7. INTERFACE "$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include>"
  8. "$<INSTALL_INTERFACE:include>")
  9. set_target_properties(opentelemetry_test_common PROPERTIES EXPORT_NAME
  10. "teset_common")
  11. target_link_libraries(opentelemetry_test_common INTERFACE opentelemetry_api)
  12. add_subdirectory(src)
  13. endif()