From 7517312290a5c357ed6ee87743c2fa9eb2e4aee5 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Fri, 28 Jul 2023 01:27:19 +0200 Subject: README.md: Provide more details about features --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README.md b/README.md index 1aa2878..37bb3c7 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,7 @@ the operation (see example below). - Supports [`multiform/form-data`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST) , which makes it useful to transfer large amounts of data, such as binary files. +- [A library](include/slweb/html.h) to write HTML programmatically. ### TLS @@ -72,6 +73,16 @@ them: $ make ``` +This would generate a static library, namely `libslweb.a`, on the project +top-level directory. Applications can then call the top-level `Makefile` by +the use of recursive `make`. For example, assuming `slweb` is contained on a +subdirectory: + +```make +slweb/libslweb.a: + +cd slweb && $(MAKE) +``` + #### CMake ```sh @@ -80,6 +91,17 @@ $ cmake .. $ cmake --build . ``` +A CMake target, also called `slweb`, is created. This makes it possible +to integrate `slweb` into CMake projects via `add_subdirectory` and +`target_link_libraries`. For example: + +```cmake +project(example) +add_executable(${PROJECT_NAME} main.c) +add_subdirectory(slweb) +target_link_libraries(${PROJECT_NAME} PRIVATE slweb) +``` + ## Why this project? Originally, `slweb` was part of the -- cgit v1.2.3