Topic: Extending CMakeLists.txt to support libwebsockets
Hi,
we are building all third party libs with cmake in our build environment I'm going to switch wolfSSL build to cmake. Currently there is no support for --enable-libwebsockets in CMakeLists.txt. I had a look on configure.ac and it seems that adding
-DWOLFSSL_LIBWEBSOCKETS -DHAVE_EX_DATA -DOPENSSL_NO_EC
would be enough. Should I put this into WOLFSSL_DEFINITIONS? Something like this:
add_option("WOLFSSL_LIBWEBSOCKETS"
"Enables libwebsockets support (default: disabled)"
"no" "yes;no")
if(WOLFSSL_LIBWEBSOCKETS )
list(APPEND WOLFSSL_DEFINITIONS "-DWOLFSSL_LIBWEBSOCKETS" "-DHAVE_EX_DATA" "-DOPENSSL_NO_EC")
endif()