summaryrefslogtreecommitdiffstats
path: root/telemetry/third-party/CMakeLists.txt
blob: 26d305d62440acaa47680281eae6b78dc213b957 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Copyright (c) 2022 Cisco and/or its affiliates.

set(THIRD_PARTY_INSTALL_PREFIX ${CMAKE_CURRENT_BINARY_DIR})

include(FetchContent)
set(FETCHCONTENT_QUIET off)
FetchContent_Declare(collectd
  URL https://github.com/collectd/collectd/archive/refs/tags/collectd-${COLLECTD_VERSION}.zip
  CONFIGURE_COMMAND ""
  BUILD_COMMAND ""
  INSTALL_COMMAND ""
)
FetchContent_Populate(collectd)

list(APPEND THIRD_PARTY_INCLUDE_DIRS
  ${collectd_SOURCE_DIR}/src
)
set(THIRD_PARTY_INCLUDE_DIRS ${THIRD_PARTY_INCLUDE_DIRS} PARENT_SCOPE)