Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
| 1 |
project(lws-minimal-ws-client-pmd-bulk C) |
| 2 |
cmake_minimum_required(VERSION 2.8.12) |
| 3 |
find_package(libwebsockets CONFIG REQUIRED) |
| 4 |
list(APPEND CMAKE_MODULE_PATH ${LWS_CMAKE_DIR}) |
| 5 |
include(CheckCSourceCompiles) |
| 6 |
include(LwsCheckRequirements) |
| 7 |
|
| 8 |
set(SAMP lws-minimal-ws-client-pmd-bulk) |
| 9 |
set(SRCS minimal-ws-client-pmd-bulk.c) |
| 10 |
|
| 11 |
set(requirements 1) |
| 12 |
require_lws_config(LWS_ROLE_WS 1 requirements) |
| 13 |
require_lws_config(LWS_WITH_CLIENT 1 requirements) |
| 14 |
#require_lws_config(LWS_WITHOUT_EXTENSIONS 0 requirements) |
| 15 |
|
| 16 |
if (requirements) |
| 17 |
add_executable(${SAMP} ${SRCS}) |
| 18 |
|
| 19 |
if (websockets_shared) |
| 20 |
target_link_libraries(${SAMP} websockets_shared ${LIBWEBSOCKETS_DEP_LIBS}) |
| 21 |
add_dependencies(${SAMP} websockets_shared) |
| 22 |
else() |
| 23 |
target_link_libraries(${SAMP} websockets ${LIBWEBSOCKETS_DEP_LIBS}) |
| 24 |
endif() |
| 25 |
endif() |