fetch_ml/native/streaming_io/CMakeLists.txt
Jeremie Fraeys d408a60eb1
Some checks failed
Documentation / build-and-publish (push) Waiting to run
Test / test (push) Waiting to run
Checkout test / test (push) Successful in 5s
CI with Native Libraries / test-native (push) Has been cancelled
CI with Native Libraries / build-release (push) Has been cancelled
ci: push all workflow updates
2026-02-12 13:28:15 -05:00

32 lines
786 B
CMake

add_library(streaming_io SHARED
streaming_io.cpp
)
target_include_directories(streaming_io PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<INSTALL_INTERFACE:include/fetchml>
)
# Find zlib for gzip decompression
find_package(ZLIB REQUIRED)
target_link_libraries(streaming_io PRIVATE
ZLIB::ZLIB
Threads::Threads
)
target_compile_features(streaming_io PUBLIC cxx_std_20)
set_target_properties(streaming_io PROPERTIES
VERSION ${PROJECT_VERSION}
SOVERSION ${PROJECT_VERSION_MAJOR}
PUBLIC_HEADER "streaming_io.h"
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}
)
install(TARGETS streaming_io
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
PUBLIC_HEADER DESTINATION include/fetchml
)