diff options
Diffstat (limited to 'src/fluent-bit/lib/cmetrics/cmake')
-rw-r--r-- | src/fluent-bit/lib/cmetrics/cmake/headers.cmake | 4 | ||||
-rw-r--r-- | src/fluent-bit/lib/cmetrics/cmake/libraries.cmake | 3 | ||||
-rw-r--r-- | src/fluent-bit/lib/cmetrics/cmake/macros.cmake | 10 |
3 files changed, 17 insertions, 0 deletions
diff --git a/src/fluent-bit/lib/cmetrics/cmake/headers.cmake b/src/fluent-bit/lib/cmetrics/cmake/headers.cmake new file mode 100644 index 000000000..e18a0c28f --- /dev/null +++ b/src/fluent-bit/lib/cmetrics/cmake/headers.cmake @@ -0,0 +1,4 @@ +include_directories(${PROJECT_SOURCE_DIR}/lib/fluent-otel-proto/include + ${PROJECT_SOURCE_DIR}/lib/fluent-otel-proto/proto_c + ${PROJECT_SOURCE_DIR}/lib/cfl/include + ) diff --git a/src/fluent-bit/lib/cmetrics/cmake/libraries.cmake b/src/fluent-bit/lib/cmetrics/cmake/libraries.cmake new file mode 100644 index 000000000..804948418 --- /dev/null +++ b/src/fluent-bit/lib/cmetrics/cmake/libraries.cmake @@ -0,0 +1,3 @@ +# List of bundled libraries +set(CMT_PATH_LIB_CFL "lib/cfl") +set(CMT_PATH_LIB_FLUENT_OTEL_PROTO "lib/fluent-otel-proto") diff --git a/src/fluent-bit/lib/cmetrics/cmake/macros.cmake b/src/fluent-bit/lib/cmetrics/cmake/macros.cmake new file mode 100644 index 000000000..9a533d3a4 --- /dev/null +++ b/src/fluent-bit/lib/cmetrics/cmake/macros.cmake @@ -0,0 +1,10 @@ +# Macro to set definitions +macro(CMT_DEFINITION var) + add_definitions(-D${var}) + set(CMT_BUILD_FLAGS "${CMT_BUILD_FLAGS}#ifndef ${var}\n#define ${var}\n#endif\n") + set(CMT_INFO_FLAGS "${CMT_INFO_FLAGS} ${var}") +endmacro() + +macro(CMT_OPTION option value) + set(${option} ${value} CACHE INTERNAL "" FORCE) +endmacro() |