summaryrefslogtreecommitdiffstats
path: root/Tests/Fortran/External
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-12-28 16:50:29 (GMT)
committerBrad King <brad.king@kitware.com>2007-12-28 16:50:29 (GMT)
commitf4fb1a4f91ead40d04cfed4a570e25821a1e37ef (patch)
treee6144adf433a3fb8bcac63aadea946ed04a9d94c /Tests/Fortran/External
parent81f6e86f12721da4eb9d0d0b4de290a7ef8f55e2 (diff)
downloadCMake-f4fb1a4f91ead40d04cfed4a570e25821a1e37ef.zip
CMake-f4fb1a4f91ead40d04cfed4a570e25821a1e37ef.tar.gz
CMake-f4fb1a4f91ead40d04cfed4a570e25821a1e37ef.tar.bz2
ENH: Add tests of Fortran module dependencies across directories and on external modules. Tests based on cases provided by Maik in issue #5809.
Diffstat (limited to 'Tests/Fortran/External')
-rw-r--r--Tests/Fortran/External/CMakeLists.txt4
-rw-r--r--Tests/Fortran/External/a.f907
2 files changed, 11 insertions, 0 deletions
diff --git a/Tests/Fortran/External/CMakeLists.txt b/Tests/Fortran/External/CMakeLists.txt
new file mode 100644
index 0000000..0eb1cfe
--- /dev/null
+++ b/Tests/Fortran/External/CMakeLists.txt
@@ -0,0 +1,4 @@
+project(ExtFort Fortran)
+
+add_library(myext a.f90)
+
diff --git a/Tests/Fortran/External/a.f90 b/Tests/Fortran/External/a.f90
new file mode 100644
index 0000000..2be73c5
--- /dev/null
+++ b/Tests/Fortran/External/a.f90
@@ -0,0 +1,7 @@
+MODULE externalMod
+!
+CONTAINS
+ SUBROUTINE printExtModGreeting
+ WRITE(*,*) "Greetings from Module externalMod"
+ END SUBROUTINE
+END MODULE