Skip to content

Commit b91378e

Browse files
committed
CMake - introduce telemetry library
1 parent d1c4dcf commit b91378e

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

external/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ include(FetchContent)
22
include(ExternalProject)
33

44
set(FETCHCONTENT_QUIET OFF)
5+
6+
include(telemetry.cmake)

external/telemetry.cmake

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Telemetry library (C++ library for telemetry data collection with Fuse integration)
2+
#
3+
# The Telemetry library consists of two libraries that can be added as dependency:
4+
#
5+
# - telemetry::telemetry (C++ library for telemetry data collection)
6+
# - telemetry::appFs (C++ library that expose telemetry data as a Fuse filesystem)
7+
8+
set(TELEMETRY_BUILD_SHARED OFF)
9+
set(TELEMETRY_INSTALL_TARGETS OFF)
10+
set(TELEMETRY_PACKAGE_BUILDER OFF)
11+
set(TELEMETRY_ENABLE_TESTS OFF)
12+
13+
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
14+
15+
set(GIT_REPO https://github.com/CESNET/telemetry.git)
16+
17+
FetchContent_Declare(
18+
telemetry
19+
GIT_REPOSITORY ${GIT_REPO}
20+
GIT_TAG v1.1.0
21+
)
22+
23+
# Make sure that subproject accepts predefined build options without warnings.
24+
set(CMAKE_POLICY_DEFAULT_CMP0077 NEW)
25+
26+
FetchContent_MakeAvailable(telemetry)

0 commit comments

Comments
 (0)