Skip to content

Commit 74f224a

Browse files
committed
Add fpm support.
1 parent e13b29b commit 74f224a

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,34 @@ A modern Fortran library for reading and writing CSV (comma-separated value) fil
66

77
[![GitHub release](https://img.shields.io/github/release/jacobwilliams/fortran-csv-module.svg?style=plastic)](https://github.com/jacobwilliams/fortran-csv-module/releases/latest)
88

9+
### Getting started
10+
#### Get the code
11+
```bash
12+
git clone https://github.com/jacobwilliams/fortran-csv-module
13+
cd fortran-csv-module
14+
```
15+
#### Dependencies
16+
1. Git
17+
2. FoBis or [fpm](https://github.com/fortran-lang/fpm)
18+
3. Ford (optional)
19+
#### Build with FoBis
20+
You can build using provided `build.sh`:
21+
```bash
22+
./build.sh
23+
```
24+
25+
#### Build with [fortran-lang/fpm](https://github.com/fortran-lang/fpm)
26+
Fortran Package Manager (fpm) is a great package manager and build system for Fortran.
27+
You can build using provided `fpm.toml`:
28+
```bash
29+
fpm build
30+
```
31+
To use `fortran-csv-module` within your fpm project, add the following to your `fpm.toml` file:
32+
```toml
33+
[dependencies]
34+
fortran-csv-module = { git="https://github.com/jacobwilliams/fortran-csv-module.git" }
35+
```
36+
937
### Examples
1038

1139
Everything is handled by an object-oriented `csv_file` class. Here is an example for writing a file:

fpm.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name = "fortran-csv-module"
2+
author = "Jacob Williams"
3+
version = "1.2.0"
4+
license = "BSD-3"
5+
copyright = "Copyright 2017 Jacob Williams"
6+
description = "A modern Fortran library for reading and writing CSV (comma-separated value) files."
7+
categories = ["io"]
8+
keywords = ["csv"]
9+
10+
[library]
11+
source-dir = "src"

0 commit comments

Comments
 (0)