fetch_ml/native/queue_index/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

31 lines
751 B
CMake

add_library(queue_index SHARED
queue_index.cpp
)
target_include_directories(queue_index PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<INSTALL_INTERFACE:include/fetchml>
)
target_link_libraries(queue_index PRIVATE
Threads::Threads
)
# Require C++20
target_compile_features(queue_index PUBLIC cxx_std_20)
# Set library properties
set_target_properties(queue_index PROPERTIES
VERSION ${PROJECT_VERSION}
SOVERSION ${PROJECT_VERSION_MAJOR}
PUBLIC_HEADER "queue_index.h"
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}
)
# Install
install(TARGETS queue_index
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
PUBLIC_HEADER DESTINATION include/fetchml
)