CMakeLists.txt 464 B

12345678910111213141516
  1. # Copyright The OpenTelemetry Authors
  2. # SPDX-License-Identifier: Apache-2.0
  3. add_subdirectory(propagation)
  4. include(GoogleTest)
  5. foreach(testname context_test runtime_context_test)
  6. add_executable(${testname} "${testname}.cc")
  7. target_link_libraries(${testname} ${GTEST_BOTH_LIBRARIES}
  8. ${CMAKE_THREAD_LIBS_INIT} opentelemetry_api)
  9. gtest_add_tests(
  10. TARGET ${testname}
  11. TEST_PREFIX context.
  12. TEST_LIST ${testname})
  13. endforeach()