xo-alloc/xo-websock/src/websock/CMakeLists.txt
Roland Conybeare dd1a6b1afc Add 'xo-websock/' from commit '57bf06a68f'
git-subtree-dir: xo-websock
git-subtree-mainline: 97eefaea22
git-subtree-split: 57bf06a68f
2025-05-11 15:08:51 -05:00

21 lines
881 B
CMake

# xo-websock/CMakeLists.txt
set(SELF_LIB websock)
set(SELF_SRCS EndpointUtil.cpp DynamicEndpoint.cpp WebsockUtil.cpp WebsocketSink.cpp Webserver.cpp)
xo_add_shared_library4(${SELF_LIB} ${PROJECT_NAME}Targets ${PROJECT_VERSION} 1 ${SELF_SRCS})
# ----------------------------------------------------------------
# external dependencies
# note: changes to xo_dependency() calls here
# must coordinate with find_dependency() calls in
# xo-websock/cmake/websockConfig.cmake.in
xo_dependency(${SELF_LIB} reactor)
xo_dependency(${SELF_LIB} webutil)
# see LibwebsocketsTargets-release.cmake for available targets
# this dependency doesn't show up via cmake-export
xo_external_target_dependency(${SELF_LIB} Libwebsockets websockets_shared)
# see jsoncpp-namespaced-targets.cmake (maybe?) for available targets
xo_external_target_dependency(${SELF_LIB} jsoncpp jsoncpp_lib)