From 4eeab74dd007d9476f3b862f79c623e457a7dad1 Mon Sep 17 00:00:00 2001 From: Sebastian Ehlert <28669218+awvwgk@users.noreply.github.com> Date: Wed, 9 Dec 2020 09:42:25 +0100 Subject: Implement example applications in Fortran fpm --- example_packages/with_examples/.gitignore | 1 + example_packages/with_examples/demo/prog.f90 | 3 +++ example_packages/with_examples/fpm.toml | 7 +++++++ 3 files changed, 11 insertions(+) create mode 100644 example_packages/with_examples/.gitignore create mode 100644 example_packages/with_examples/demo/prog.f90 create mode 100644 example_packages/with_examples/fpm.toml (limited to 'example_packages/with_examples') diff --git a/example_packages/with_examples/.gitignore b/example_packages/with_examples/.gitignore new file mode 100644 index 0000000..d9b4f01 --- /dev/null +++ b/example_packages/with_examples/.gitignore @@ -0,0 +1 @@ +/build/* diff --git a/example_packages/with_examples/demo/prog.f90 b/example_packages/with_examples/demo/prog.f90 new file mode 100644 index 0000000..8b3d882 --- /dev/null +++ b/example_packages/with_examples/demo/prog.f90 @@ -0,0 +1,3 @@ +program demo + write(*, '(a)') "This is a simple demo program, but not a real application" +end program demo diff --git a/example_packages/with_examples/fpm.toml b/example_packages/with_examples/fpm.toml new file mode 100644 index 0000000..d7d2926 --- /dev/null +++ b/example_packages/with_examples/fpm.toml @@ -0,0 +1,7 @@ +name = "with_examples" +build.auto-examples = false + +[[example]] +name = "demo-prog" +source-dir = "demo" +main = "prog.f90" -- cgit v1.2.3