|
| 1 | +project(ipfixprobe-storage-cache-ctt VERSION 1.0.0 DESCRIPTION "ipfixprobe-storage-cache-ctt plugin") |
| 2 | + |
| 3 | +set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/) |
| 4 | + |
| 5 | +add_library(ipfixprobe-storage-cache-ctt MODULE |
| 6 | + src/cacheCtt.hpp |
| 7 | + src/cacheCtt.cpp |
| 8 | + src/cacheOptParserCtt.hpp |
| 9 | + src/cacheOptParserCtt.cpp |
| 10 | + src/cttController.hpp |
| 11 | + src/cttController.cpp |
| 12 | + src/flowRecordCtt.hpp |
| 13 | + src/flowRecordCtt.cpp |
| 14 | + src/cttRemoveQueue.hpp |
| 15 | + src/cttRemoveQueue.cpp |
| 16 | + ../cache/src/cache.hpp |
| 17 | + ../cache/src/cache.cpp |
| 18 | + ../cache/src/cacheOptParser.hpp |
| 19 | + ../cache/src/cacheOptParser.cpp |
| 20 | + ../cache/src/cacheRowSpan.hpp |
| 21 | + ../cache/src/cacheStats.hpp |
| 22 | + ../cache/src/flowKey.hpp |
| 23 | + ../cache/src/flowKeyFactory.hpp |
| 24 | + ../cache/src/flowRecord.hpp |
| 25 | + ../cache/src/flowRecord.cpp |
| 26 | + ../cache/src/fragmentationCache/fragmentationCache.cpp |
| 27 | + ../cache/src/fragmentationCache/fragmentationCache.hpp |
| 28 | + ../cache/src/fragmentationCache/fragmentationKeyData.hpp |
| 29 | + ../cache/src/fragmentationCache/fragmentationTable.cpp |
| 30 | + ../cache/src/fragmentationCache/fragmentationTable.hpp |
| 31 | + ../cache/src/fragmentationCache/ringBuffer.hpp |
| 32 | + ../cache/src/fragmentationCache/timevalUtils.hpp |
| 33 | + ../cache/src/xxhash.c |
| 34 | + ../cache/src/xxhash.h |
| 35 | +) |
| 36 | + |
| 37 | +add_compile_definitions(maybe_virtual=virtual) |
| 38 | + |
| 39 | +set_target_properties(ipfixprobe-storage-cache-ctt PROPERTIES |
| 40 | + CXX_VISIBILITY_PRESET hidden |
| 41 | + VISIBILITY_INLINES_HIDDEN YES |
| 42 | +) |
| 43 | + |
| 44 | +target_compile_options(ipfixprobe-storage-cache-ctt PRIVATE |
| 45 | + $<$<CONFIG:Release>: -O4 -flto=auto -fwhole-program> |
| 46 | +) |
| 47 | + |
| 48 | +target_include_directories(ipfixprobe-storage-cache-ctt PRIVATE |
| 49 | + ${CMAKE_SOURCE_DIR}/include/ |
| 50 | +) |
| 51 | + |
| 52 | +target_link_libraries(ipfixprobe-storage-cache-ctt PRIVATE |
| 53 | + telemetry::telemetry |
| 54 | + telemetry::appFs |
| 55 | + ctt |
| 56 | + feta |
| 57 | +) |
| 58 | + |
| 59 | +install(TARGETS ipfixprobe-storage-cache-ctt |
| 60 | + LIBRARY DESTINATION "${INSTALL_DIR_LIB}/ipfixprobe/storage/" |
| 61 | +) |
| 62 | + |
| 63 | +set(LIB_CTT_KEY_SIZE "0" CACHE STRING "Set the custom size value for cttctl") |
| 64 | +set(LIB_CTT_STATE_SIZE "0" CACHE STRING "Set the custom size value for cttctl") |
| 65 | +set(LIB_CTT_STATE_MASK_SIZE "0" CACHE STRING "Set the custom size value for cttctl") |
| 66 | + |
| 67 | +add_definitions( |
| 68 | + -DLIB_CTT_VERSION_MAJOR=${VERSION_MAJOR} |
| 69 | + -DLIB_CTT_VERSION_MINOR=${VERSION_MINOR} |
| 70 | + -DLIB_CTT_KEY_SIZE=${LIB_CTT_KEY_SIZE} |
| 71 | + -DLIB_CTT_STATE_SIZE=${LIB_CTT_STATE_SIZE} |
| 72 | + -DLIB_CTT_STATE_MASK_SIZE=${LIB_CTT_STATE_MASK_SIZE} |
| 73 | +) |
| 74 | + |
0 commit comments