-
Notifications
You must be signed in to change notification settings - Fork 440
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Harish Shan <140232061+perhapsmaple@users.noreply.github.com>
- Loading branch information
1 parent
a177289
commit 606aebb
Showing
3 changed files
with
41 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
# Copyright The OpenTelemetry Authors | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
if(DEFINED OPENTELEMETRY_BUILD_DLL) | ||
add_definitions(-DOPENTELEMETRY_BUILD_IMPORT_DLL) | ||
endif() | ||
|
||
add_library(common_metrics_foo_library foo_library.h foo_library.cc) | ||
set_target_version(common_metrics_foo_library) | ||
target_link_libraries(common_metrics_foo_library PUBLIC opentelemetry_api) | ||
|
||
target_link_libraries(common_metrics_foo_library PUBLIC ${CMAKE_THREAD_LIBS_INIT} | ||
opentelemetry_api) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,19 @@ | ||
# Copyright The OpenTelemetry Authors | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
if(DEFINED OPENTELEMETRY_BUILD_DLL) | ||
add_definitions(-DOPENTELEMETRY_BUILD_IMPORT_DLL) | ||
endif() | ||
|
||
include_directories(${CMAKE_SOURCE_DIR}/exporters/ostream/include) | ||
|
||
add_executable(metrics_ostream_example metrics_ostream.cc) | ||
target_link_libraries( | ||
metrics_ostream_example ${CMAKE_THREAD_LIBS_INIT} opentelemetry_metrics | ||
opentelemetry_exporter_ostream_metrics opentelemetry_resources | ||
common_metrics_foo_library) | ||
target_link_libraries(metrics_ostream_example ${CMAKE_THREAD_LIBS_INIT} | ||
common_metrics_foo_library) | ||
|
||
if(DEFINED OPENTELEMETRY_BUILD_DLL) | ||
target_link_libraries(metrics_ostream_example opentelemetry_cpp) | ||
else() | ||
target_link_libraries(metrics_ostream_example opentelemetry_metrics | ||
opentelemetry_exporter_ostream_metrics opentelemetry_resources) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters