mirror of
https://github.com/open62541/open62541.git
synced 2026-10-20 23:49:19 +08:00
347a486f53
add compile definitions for websocket server geändert: CMakeLists.txt geändert: plugins/ua_config_default.c fix CMakeLists fix missing callback for UA_Connection remove mountpoint, not necessary set timeout of lws_service to zero, otherwise it will block the main event loop narrow scope of variable add logging rework serverconfig geändert: CMakeLists.txt geändert: examples/tutorial_server_variable.c geändert: plugins/include/open62541/server_config_default.h geändert: plugins/ua_config_default.c add send queue fix rx,tx buffer size fix memory leaks, cmake config apply code formatter modified: arch/network_ws.c remove global variables remove global vars geändert: CMakeLists.txt geändert: arch/network_ws.c remove unnecessary comments
33 lines
961 B
CMake
33 lines
961 B
CMake
# This module tries to find libWebsockets library and include files
|
|
#
|
|
# LIBWEBSOCKETS_INCLUDE_DIR, path where to find libwebsockets.h
|
|
# LIBWEBSOCKETS_LIBRARY_DIR, path where to find libwebsockets.so
|
|
# LIBWEBSOCKETS_LIBRARIES, the library to link against
|
|
# LIBWEBSOCKETS_FOUND, If false, do not try to use libWebSockets
|
|
#
|
|
# This currently works probably only for Linux
|
|
|
|
FIND_PATH ( LIBWEBSOCKETS_INCLUDE_DIR libwebsockets.h
|
|
/usr/local/include
|
|
/usr/include
|
|
)
|
|
|
|
FIND_LIBRARY ( LIBWEBSOCKETS_LIBRARIES websockets
|
|
/usr/local/lib
|
|
/usr/lib
|
|
)
|
|
|
|
GET_FILENAME_COMPONENT( LIBWEBSOCKETS_LIBRARY_DIR ${LIBWEBSOCKETS_LIBRARIES} PATH )
|
|
|
|
SET ( LIBWEBSOCKETS_FOUND "NO" )
|
|
IF ( LIBWEBSOCKETS_INCLUDE_DIR )
|
|
IF ( LIBWEBSOCKETS_LIBRARIES )
|
|
SET ( LIBWEBSOCKETS_FOUND "YES" )
|
|
ENDIF ( LIBWEBSOCKETS_LIBRARIES )
|
|
ENDIF ( LIBWEBSOCKETS_INCLUDE_DIR )
|
|
|
|
MARK_AS_ADVANCED(
|
|
LIBWEBSOCKETS_LIBRARY_DIR
|
|
LIBWEBSOCKETS_INCLUDE_DIR
|
|
LIBWEBSOCKETS_LIBRARIES
|
|
) |