fetch_ml/native/common/CMakeLists.txt
Jeremie Fraeys dddc2913e1
chore(tools): update scripts, native libs, and documentation
Update tooling and documentation:
- Smoke test script with scheduler health checks
- Release cleanup script
- Native test scripts with Redis integration
- TUI SSH test script
- Performance regression detector with scheduler metrics
- Profiler with distributed tracing
- Native CMake with test targets
- Dataset hash tests
- Storage symlink resistance tests
- Configuration reference documentation updates
2026-02-26 12:08:58 -05:00

22 lines
602 B
CMake

# Common utilities library
set(COMMON_SOURCES
src/arena_allocator.cpp
src/thread_pool.cpp
src/mmap_utils.cpp
src/secure_mem.cpp
src/path_sanitizer.cpp
)
add_library(fetchml_common STATIC ${COMMON_SOURCES})
# Required for linking into shared libraries on Alpine Linux
set_property(TARGET fetchml_common PROPERTY POSITION_INDEPENDENT_CODE ON)
target_include_directories(fetchml_common PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/include
)
target_compile_features(fetchml_common PUBLIC cxx_std_17)
# Link pthread for thread support
target_link_libraries(fetchml_common PUBLIC pthread)