1+ # Copyright The OpenTelemetry Authors
2+ # SPDX-License-Identifier: Apache-2.0
3+
14cmake_minimum_required (VERSION 3.10)
25project (opentelemetry-cpp-component -install -tests LANGUAGES CXX)
36
@@ -12,6 +15,7 @@ endif()
1215
1316include (${CMAKE_SOURCE_DIR} /../../install /component -definitions .cmake)
1417
18+ # If COMPONENTS_TO_TEST is not set, then test all components
1519if (NOT COMPONENTS_TO_TEST)
1620 set (COMPONENTS_TO_TEST ${opentelemetry-cpp_COMPONENTS})
1721else ()
@@ -41,6 +45,8 @@ message(STATUS "Testing cmake usage for find_package(opentelemetry ...)")
4145# 2. Test find_package with components specified but not sorted in dependency
4246# order
4347# 3. Test find_package with components specified but missing dependent components
48+ # 4. Test find_package with components specified but including
49+ # unsupported/unknown components
4450
4551add_test (
4652 NAME cmake-usage-no -components-test
@@ -76,9 +82,7 @@ add_test(
7682
7783# -----------------------------------------------------------
7884# Test the full package install using legacy cmake build instructions
79- # find_package(opentelemetry-cpp CONFIG REQUIRED) target_include_directories(foo
80- # PRIVATE ${OPENTELEMETRY_CPP_INCLUDE_DIRS}) target_link_libraries(foo PRIVATE
81- # ${OPENTELEMETRY_CPP_LIBRARIES})
85+ # find_package(opentelemetry-cpp CONFIG REQUIRED)
8286message (STATUS "Testing the full package install" )
8387# Test cmake configuration
8488add_test (
0 commit comments