Debian Codegraph @

minimal-examples/crypto/minimal-crypto-jws/CMakeLists.txt

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 project(lws-crypto-jws 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-crypto-jws)
9 set(SRCS main.c)
10
11 set(requirements 1)
12 require_lws_config(LWS_WITH_JOSE 1 requirements)
13
14 if (requirements)
15
16 add_executable(${SAMP} ${SRCS})
17
18 if (websockets_shared)
19 target_link_libraries(${SAMP} websockets_shared ${LIBWEBSOCKETS_DEP_LIBS})
20 add_dependencies(${SAMP} websockets_shared)
21 else()
22 target_link_libraries(${SAMP} websockets ${LIBWEBSOCKETS_DEP_LIBS})
23 endif()
24 endif()