26 lines
713 B
Plaintext
26 lines
713 B
Plaintext
###
|
|
# libwebsockets C library
|
|
###
|
|
message("-- Enabled 3rdparty/libwebsockets")
|
|
|
|
ExternalProject_Add(
|
|
libwebsockets
|
|
DOWNLOAD_COMMAND ""
|
|
SOURCE_DIR ${PROJECT_SOURCE_DIR}/3rdparty/libwebsockets
|
|
CMAKE_ARGS
|
|
-DCMAKE_BUILD_TYPE=Release
|
|
-DLWS_WITH_SHARED=0
|
|
-DLWS_WITHOUT_CLIENT=1
|
|
-DLWS_NO_EXTENSIONS=1
|
|
-DLWS_WITHOUT_EXTENSIONS=ON
|
|
-DCMAKE_C_FLAGS=-fPIC
|
|
INSTALL_COMMAND ""
|
|
)
|
|
|
|
set(libwebsockets_CFLAGS "-fPIC")
|
|
ExternalProject_Get_Property(libwebsockets binary_dir)
|
|
ExternalProject_Get_Property(libwebsockets source_dir)
|
|
message(${binary_dir})
|
|
set(libwebsockets_library ${binary_dir}/lib/libwebsockets.a)
|
|
set(libwebsockets_include_dir "${source_dir}/lib;${binary_dir}")
|