cZlib/README.md

25 lines
495 B
Markdown
Raw Permalink Normal View History

2022-08-30 09:45:47 +02:00
# cZlib 1.2.5 sources for Gint
2022-04-29 09:49:46 +02:00
Need to have a fully working gcc toolchain for SH3/SH4 architecture.
Compilation is done for all targets with a single:
2022-04-29 09:49:46 +02:00
```bash
% fxsdk build-fx install
```
2022-04-29 09:49:46 +02:00
2022-08-30 09:06:00 +02:00
You can also use the `giteapc install Slyvtt/cZlib` command to get an automatic install.
2022-04-29 09:49:46 +02:00
## Using in a program
2022-04-29 09:49:46 +02:00
With CMake:
2022-04-29 09:49:46 +02:00
```cmake
2022-08-30 09:45:47 +02:00
find_package(cZlib 1.2.5 REQUIRED)
target_link_libraries(<TARGET> PRIVATE cZlib::cZlib)
```
2022-04-29 09:49:46 +02:00
2022-08-30 09:45:47 +02:00
With make, link with `-lcZlib`.
In the C/C++ source, `#include <zlib.h>`.