1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-23 00:00:06 +01:00
libwebsockets/minimal-examples/api-tests
Andy Green b912958a67 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 10:47:12 +01:00
..
api-test-async-dns cmake: bring tls include requirement out as PUBLIC 2021-10-28 10:47:12 +01:00
api-test-cose cose: keys and signing + validation 2021-08-31 05:45:35 +01:00
api-test-dhcpc dhcp: clean 2021-02-17 11:39:15 +00:00
api-test-fts type comparisons: fixes 2021-01-05 10:56:38 +00:00
api-test-gencrypto wolfssl: update gencrypto 2021-09-08 09:42:11 +01:00
api-test-jose examples: fix sizeof lws_tls_cert_info_results in test_jwt_RS256 2021-10-05 07:40:17 +01:00
api-test-lecp cose: keys and signing + validation 2021-08-31 05:45:35 +01:00
api-test-lejp cmake: latest cmake shows dep warnings for scripts < 2.8.12 2020-12-06 19:44:54 +00:00
api-test-lws_cache http: cookies: support cookie jar in and out 2021-08-21 17:44:40 +01:00
api-test-lws_dsh dsh: remove foreign support 2021-10-04 12:59:27 +01:00
api-test-lws_map lws_map 2021-08-21 17:44:40 +01:00
api-test-lws_sequencer ss: mass update LE root to isrg part 2 2021-10-05 06:48:03 +01:00
api-test-lws_smd cmake: unbreak LWS_WITH_SYS_STATE disabled build 2021-10-05 07:40:17 +01:00
api-test-lws_struct-json Fault injection 2021-04-05 10:55:04 +01:00
api-test-lws_struct_sqlite cmake: latest cmake shows dep warnings for scripts < 2.8.12 2020-12-06 19:44:54 +00:00
api-test-lws_tokenize wilcard: change api to use length for check 2021-06-07 14:57:57 +01:00
api-test-lwsac cmake: latest cmake shows dep warnings for scripts < 2.8.12 2020-12-06 19:44:54 +00:00
api-test-secure-streams cpd: pass up lws_ss_request_tx ret 2021-08-16 08:07:32 +01:00
api-test-smtp_client cmake: latest cmake shows dep warnings for scripts < 2.8.12 2020-12-06 19:44:54 +00:00
README.md smtp: make abstract 2019-05-04 08:28:31 +01:00

These are buildable test apps that run in CI to confirm correct api operation.

name tests
api-test-lwsac LWS Allocated Chunks api
api-test-lws_struct-json Selftests for lws_struct JSON serialization and deserialization
api-test-lws_tokenize Generic secure string tokenizer api
api-test-fts LWS Full-text Search api
api-test-gencrypto LWS Generic Crypto apis
api-test-jose LWS JOSE apis
api-test-smtp_client SMTP client for sending emails