1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00
libwebsockets/minimal-examples/http-server/minimal-http-server-form-post-file/CMakeLists.txt

25 lines
749 B
Text
Raw Normal View History

project(lws-minimal-http-server-form-post-file C)
2018-03-29 10:01:05 +08:00
cmake_minimum_required(VERSION 2.8)
find_package(libwebsockets CONFIG REQUIRED)
list(APPEND CMAKE_MODULE_PATH ${LWS_CMAKE_DIR})
2018-03-29 10:01:05 +08:00
include(CheckCSourceCompiles)
include(LwsCheckRequirements)
2018-03-29 10:01:05 +08:00
set(SAMP lws-minimal-http-server-form-post-file)
set(SRCS minimal-http-server-form-post-file.c)
set(requirements 1)
require_lws_config(LWS_ROLE_H1 1 requirements)
require_lws_config(LWS_WITH_SERVER 1 requirements)
2018-03-29 10:01:05 +08:00
if (requirements)
add_executable(${SAMP} ${SRCS})
if (websockets_shared)
target_link_libraries(${SAMP} websockets_shared ${LIBWEBSOCKETS_DEP_LIBS})
2018-03-29 10:01:05 +08:00
add_dependencies(${SAMP} websockets_shared)
else()
target_link_libraries(${SAMP} websockets ${LIBWEBSOCKETS_DEP_LIBS})
2018-03-29 10:01:05 +08:00
endif()
endif()