You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
492 B
14 lines
492 B
2 months ago
|
cmake_minimum_required(VERSION 3.24)
|
||
|
include(FetchContent)
|
||
|
FetchContent_Declare(
|
||
|
uWebSockets_content
|
||
|
GIT_REPOSITORY https://github.com/uNetworking/uWebSockets
|
||
|
GIT_TAG v20.37.0
|
||
|
GIT_SHALLOW ON
|
||
|
GIT_SUBMODULES ""
|
||
|
)
|
||
|
FetchContent_MakeAvailable(uWebSockets_content)
|
||
|
find_package(ZLIB REQUIRED)
|
||
|
add_library(uWebSockets INTERFACE)
|
||
|
target_include_directories(uWebSockets INTERFACE ${uwebsockets_content_SOURCE_DIR}/src/)
|
||
|
target_link_libraries(uWebSockets INTERFACE uSockets ${ZLIB_LIBRARIES})
|