Skip to content

Commit 471772c

Browse files
committed
Improved README.md
1 parent 8d90340 commit 471772c

File tree

2 files changed

+34
-12
lines changed

2 files changed

+34
-12
lines changed

F.png

10 Bytes
Loading

README.md

+34-12
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,25 @@
22

33
This repository contains the libcairo bindings for Fortran from the [gtk-fortran project](https://github.com/vmagnin/gtk-fortran/) available as a separate _fpm_ package.
44

5-
## Original project and Authors
6-
Origin: [gtk-fortran project](https://github.com/vmagnin/gtk-fortran/)
7-
Authors:
8-
> Vincent MAGNIN, James TAPPIN, Jens HUNGER, Jerry DE LISLE, "gtk-fortran: a GTK+ binding to build Graphical User Interfaces in Fortran", _Journal of Open Source Software,_ 4(34), 1109, 12th January 2019, [https://doi.org/10.21105/joss.01109](https://doi.org/10.21105/joss.01109)
9-
10-
## License
11-
GPL-3.0-or-later
5+
## Testing cairo-fortran
126

13-
## fpm
14-
To use cairo-fortran within your `fpm` project, add the following to your project `fpm.toml` file:
7+
Each test prints nothing in the terminal but is creating a PNG file. You should therefore obtain three PNG files in the main directory of the project:
158

16-
```toml
17-
[dependencies]
18-
cairo-fortran = {git = "https://github.com/brocolis/cairo-fortran" }
9+
```bash
10+
$ fpm test
11+
cairo-auto.f90 done.
12+
cairo-enums.f90 done.
13+
cairo-types.f90 done.
14+
libcairo-fortran.a done.
15+
test4.f90 done.
16+
test1.f90 done.
17+
test2.f90 done.
18+
test4 done.
19+
test1 done.
20+
test2 done.
21+
[100%] Project compiled successfully.
22+
$ ls *.png
23+
axis.png chess.png F.png
1924
```
2025

2126
### Example test1
@@ -24,3 +29,20 @@ cairo-fortran = {git = "https://github.com/brocolis/cairo-fortran" }
2429
![test2](axis.png)
2530
### Example test4
2631
![test4](chess.png)
32+
33+
## fpm
34+
To use cairo-fortran within your own `fpm` project, add the following to your project `fpm.toml` file:
35+
36+
```toml
37+
[dependencies]
38+
cairo-fortran = {git = "https://github.com/vmagnin/cairo-fortran" }
39+
```
40+
41+
## License
42+
GPL-3.0-or-later
43+
44+
## Original project and Authors
45+
* Origin: [gtk-fortran project](https://github.com/vmagnin/gtk-fortran/)
46+
* Authors:
47+
> Vincent MAGNIN, James TAPPIN, Jens HUNGER, Jerry DE LISLE, "gtk-fortran: a GTK+ binding to build Graphical User Interfaces in Fortran", _Journal of Open Source Software,_ 4(34), 1109, 12th January 2019, [https://doi.org/10.21105/joss.01109](https://doi.org/10.21105/joss.01109)
48+

0 commit comments

Comments
 (0)