xo-umbrella2/xo-reactor2websock/CMakeLists.txt
Roland Conybeare a5097a5baf
Some checks failed
cmake-docker / cmake-build (clang, clang++) (push) Failing after 39m14s
cmake-docker / cmake-build (gcc, g++) (push) Failing after 38m23s
CI / smoke-test (push) Successful in 10m52s
xo-reactor2websock: + REactorWebSocketSink [REFACTOR]
Originally provided by xo-reactor.
2026-09-26 13:46:22 -04:00

37 lines
1.1 KiB
CMake

# xo-reactor2websock/CMakeLists.txt
#
# Adapter between xo-reactor (event sources/sinks) and xo-websock (websocket
# transport). Read the name as reactor-TO-websock, not as xo-reactor2.
#
# Exists so that NEITHER of those depends on the other: xo-websock carries
# frames and speaks only TaggedPtr, and xo-reactor no longer knows the web
# exists. See .xo-backlog/xo-websock/issues/02.
cmake_minimum_required(VERSION 3.10)
project(reactor2websock VERSION 1.0)
include(GNUInstallDirs)
include(cmake/xo-bootstrap-macros.cmake)
xo_cxx_toplevel_options3()
# ----------------------------------------------------------------
# common c++ settings
# PROJECT_CXX_FLAGS: bespoke for this project - usually empty
set(PROJECT_CXX_FLAGS "")
add_definitions(${PROJECT_CXX_FLAGS})
# ----------------------------------------------------------------
# sources
add_subdirectory(src/reactor2websock)
add_subdirectory(utest)
# ----------------------------------------------------------------
# provide find_package() support
xo_export_cmake_config(${PROJECT_NAME} ${PROJECT_VERSION} ${PROJECT_NAME}Targets)
# end CMakeLists.txt