forked from open-telemetry/opentelemetry-network
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
89 lines (77 loc) · 1.83 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.12)
project(
opentelemetry-ebpf
VERSION ${EBPF_NET_MAJOR_VERSION}.${EBPF_NET_MINOR_VERSION}.${EBPF_NET_PATCH_VERSION}
)
list(
APPEND
CMAKE_MODULE_PATH
${CMAKE_CURRENT_LIST_DIR}/cmake
)
include(FindPkgConfig)
if(NOT CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
# Building as a subproject (submodule).
set(EBPF_NET_SUBPROJECT TRUE)
endif()
# Custom modules
#
include(cpp-compiler)
include(ccache)
include(docker-utils)
include(sanitizer)
include(executable)
include(xxd)
include(shell)
include(debug)
include(lz4)
include(openssl)
include(civetweb)
include(curl)
include(curlpp)
include(spdlog)
include(aws-sdk)
include(geoip)
include(golang)
include(protobuf)
include(llvm)
include(clang)
include(libelf)
include(bcc)
include(test)
include(uv)
include(breakpad)
include(abseil)
include(yamlcpp)
include(render)
include_directories(
${PROJECT_SOURCE_DIR}
${CMAKE_BINARY_DIR}
${CMAKE_INSTALL_PREFIX}
${CMAKE_INSTALL_PREFIX}/include
)
include_directories(${CMAKE_CURRENT_BINARY_DIR})
set(CONFIG_H_DIR ${CMAKE_CURRENT_BINARY_DIR})
add_custom_target(pipeline)
add_custom_target(pipeline-docker)
add_custom_target(pipeline-docker-registry)
add_subdirectory(renderc)
add_subdirectory(render)
add_subdirectory(config)
add_subdirectory(channel)
add_subdirectory(platform)
add_subdirectory(scheduling)
add_subdirectory(util)
add_subdirectory(geoip)
add_subdirectory(jitbuf)
add_subdirectory(collector)
add_subdirectory(reducer)
add_subdirectory(otlp)
add_subdirectory(dev)
add_subdirectory(tools)
add_subdirectory(dist)
configure_file(config.h.cmake_in config.h)
add_dependencies(pipeline collectors reducer)
add_dependencies(pipeline-docker collectors-docker)
add_dependencies(pipeline-docker-registry collectors-docker-registry)