1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00
libwebsockets/lib
Andy Green 67f532a8c6 cmake: bring tls include requirement out as PUBLIC
There's no problem for library build, also with LWS_WITH_MINIMAL_EXAMPLES,
but after install at least on OSX, there are problems finding the installed
lws include dir (concealed on most platforms by the path being in the
default search list for the toolchain), and the references in the lws
includes to the tls includes meaning that explicit paths for that must be
available at consuming cmakes.

This patch enhances the cmake config installed by lws to deal with adding
the lws include paths to CMAKE_REQUIRED_INCLUDES and include_directories,
so it can be found before the target is introduced.

The tls include is passed back up the CMakeLists layers and the lws targets
marked with target_include_directories(PUBLIC) with them, so they are
understood as needed by consumers.

More boilerplate is moved out of the example consuming cmakes.

After this, on machines with previous installs of older lws, you may have to
clean out the cmake install path, that is usually something like

/usr/local/lib/cmake/libwebsockets/*

before make installing lws and putting the latest content in there.
2021-10-28 08:12:48 +01:00
..
core logs: migrate more to log context 2021-10-15 14:11:41 +01:00
core-net minimal: ss: embedded: RT595S ACM transport 2021-10-24 16:50:39 +01:00
cose cose: keys and signing + validation 2021-08-31 05:45:35 +01:00
drivers drivers: spi: avoid leaking uninitialized bits 2021-04-15 17:41:53 +01:00
event-libs sspc: refactor to allow different transports 2021-10-08 09:48:41 +01:00
jose cose: keys and signing + validation 2021-08-31 05:45:35 +01:00
misc jrpc: add support 2021-10-11 09:10:15 +01:00
plat plat: freertos: selectively use old service looping 2021-10-26 09:55:09 +01:00
roles mqtt: allow indicating username and password are not on heap 2021-10-27 16:52:38 +01:00
secure-streams minimal: ss: embedded: RT595S ACM transport 2021-10-24 16:50:39 +01:00
system adns: api-test: add synthetic result parsing 2021-10-18 09:58:16 +01:00
tls cmake: bring tls include requirement out as PUBLIC 2021-10-28 08:12:48 +01:00
CMakeLists.txt cmake: bring tls include requirement out as PUBLIC 2021-10-28 08:12:48 +01:00
README.md cleaning 2020-01-05 22:17:58 +00:00

Library sources layout

Code that goes in the libwebsockets library itself lives down ./lib

Path Sources
lib/core Core lws code related to generic fd and wsi servicing and management
lib/core-net Core lws code that applies only if networking enabled
lib/event-libs Code containing optional event-lib specific adaptations
lib/jose JOSE / JWS / JWK / JWE implementations
lib/misc Code for various mostly optional miscellaneous features
lib/plat Platform-specific adaptation code
lib/roles Code for specific optional wsi roles, eg, http/1, h2, ws, raw, etc
lib/system Code for system-level features, eg, dhcpclient
lib/tls Code supporting the various TLS libraries