1d4afb5ceSopenharmony_ci# - Config file for lws
2d4afb5ceSopenharmony_ci
3d4afb5ceSopenharmony_ci# It defines the following variables
4d4afb5ceSopenharmony_ci#  LIBWEBSOCKETS_INCLUDE_DIRS - include directories for lws
5d4afb5ceSopenharmony_ci#  LIBWEBSOCKETS_LIBRARIES    - libraries to link against
6d4afb5ceSopenharmony_ci
7d4afb5ceSopenharmony_ci# Get the path of the current file.
8d4afb5ceSopenharmony_ciget_filename_component(LWS_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
9d4afb5ceSopenharmony_cilist(APPEND CMAKE_MODULE_PATH ${libwebsockets_DIR})
10d4afb5ceSopenharmony_ci
11d4afb5ceSopenharmony_ciset(LIBWEBSOCKETS_INCLUDE_DIRS "@LWS__INCLUDE_DIRS@" "@LWS_PUBLIC_INCLUDES@")
12d4afb5ceSopenharmony_ci
13d4afb5ceSopenharmony_ci# Include the project Targets file, this contains definitions for IMPORTED targets.
14d4afb5ceSopenharmony_ciinclude(${LWS_CMAKE_DIR}/LibwebsocketsTargets.cmake)
15d4afb5ceSopenharmony_ciinclude(${LWS_CMAKE_DIR}/LwsCheckRequirements.cmake)
16d4afb5ceSopenharmony_ci
17d4afb5ceSopenharmony_ci# IMPORTED targets from LibwebsocketsTargets.cmake
18d4afb5ceSopenharmony_ciset(LIBWEBSOCKETS_LIBRARIES websockets websockets_shared)
19d4afb5ceSopenharmony_ci
20d4afb5ceSopenharmony_ci# These are additional include paths you will need
21d4afb5ceSopenharmony_ciforeach(item "${LIBWEBSOCKETS_INCLUDE_DIRS}")
22d4afb5ceSopenharmony_ci	include_directories(${item})
23d4afb5ceSopenharmony_ci	set(CMAKE_REQUIRED_INCLUDES "${CMAKE_REQUIRED_INCLUDES}" ${item})
24d4afb5ceSopenharmony_ciendforeach()
25d4afb5ceSopenharmony_ci
26d4afb5ceSopenharmony_ci# These are additional libs that lws wants your app to also link to
27d4afb5ceSopenharmony_ciforeach(item "@LIB_LIST_AT_END@")
28d4afb5ceSopenharmony_ci	list(APPEND LIBWEBSOCKETS_DEP_LIBS ${item})
29d4afb5ceSopenharmony_ciendforeach()
30d4afb5ceSopenharmony_ci
31d4afb5ceSopenharmony_ci# Move boilerplate for consuming cmake files into here
32d4afb5ceSopenharmony_ci
33d4afb5ceSopenharmony_ciinclude(CheckIncludeFile)
34d4afb5ceSopenharmony_ciinclude(CheckCSourceCompiles)
35d4afb5ceSopenharmony_ciset(requirements 1)
36d4afb5ceSopenharmony_ci
37