aboutsummaryrefslogtreecommitdiff
path: root/example_packages/fortran_includes
diff options
context:
space:
mode:
authorJakub JelĂ­nek <33724536+kubajj@users.noreply.github.com>2021-03-26 23:37:39 +0100
committerGitHub <noreply@github.com>2021-03-26 23:37:39 +0100
commite70ce36a74cfd6d29c552140bc979377881147f6 (patch)
tree8e91212f1115aedf90db865a240f4d4060e0ce93 /example_packages/fortran_includes
parent9a14cd1e10a26f527fde7fedb94109c6b46a262a (diff)
parentcb3337b021c5e590c34ec5e0b65b45cc7d497122 (diff)
downloadfpm-e70ce36a74cfd6d29c552140bc979377881147f6.tar.gz
fpm-e70ce36a74cfd6d29c552140bc979377881147f6.zip
Merge branch 'master' into Duplicate_module_definitions
Diffstat (limited to 'example_packages/fortran_includes')
-rw-r--r--example_packages/fortran_includes/.gitignore1
-rw-r--r--example_packages/fortran_includes/fpm.toml4
-rw-r--r--example_packages/fortran_includes/inc/parameters.f901
-rw-r--r--example_packages/fortran_includes/src/lib.f9014
4 files changed, 20 insertions, 0 deletions
diff --git a/example_packages/fortran_includes/.gitignore b/example_packages/fortran_includes/.gitignore
new file mode 100644
index 0000000..a007fea
--- /dev/null
+++ b/example_packages/fortran_includes/.gitignore
@@ -0,0 +1 @@
+build/*
diff --git a/example_packages/fortran_includes/fpm.toml b/example_packages/fortran_includes/fpm.toml
new file mode 100644
index 0000000..8557b72
--- /dev/null
+++ b/example_packages/fortran_includes/fpm.toml
@@ -0,0 +1,4 @@
+name = "fortran_includes"
+
+[library]
+include-dir = "inc"
diff --git a/example_packages/fortran_includes/inc/parameters.f90 b/example_packages/fortran_includes/inc/parameters.f90
new file mode 100644
index 0000000..e9e1af5
--- /dev/null
+++ b/example_packages/fortran_includes/inc/parameters.f90
@@ -0,0 +1 @@
+integer, parameter :: dp = kind(0.d0) \ No newline at end of file
diff --git a/example_packages/fortran_includes/src/lib.f90 b/example_packages/fortran_includes/src/lib.f90
new file mode 100644
index 0000000..a27a001
--- /dev/null
+++ b/example_packages/fortran_includes/src/lib.f90
@@ -0,0 +1,14 @@
+module test_mod
+ implicit none
+
+ include "parameters.f90"
+
+ contains
+
+ subroutine test_sub(a)
+ real(dp), intent(in) :: a
+
+ write(*,*) 'a: ', a
+ end subroutine test_sub
+
+end module test_mod \ No newline at end of file