diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-07-28 01:27:19 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-07-28 01:27:19 +0200 |
| commit | 7517312290a5c357ed6ee87743c2fa9eb2e4aee5 (patch) | |
| tree | 8a1729d1c72d67a0c5af5fe3eedaa434e7056497 | |
| parent | 8c3ba33ced08b211db0cd5f81675bdf62f55acc7 (diff) | |
README.md: Provide more details about features
| -rw-r--r-- | README.md | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -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 |
