summaryrefslogtreecommitdiffstats
path: root/Tests/Fortran/Executable
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/Executable
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/Executable')
-rw-r--r--Tests/Fortran/Executable/CMakeLists.txt8
-rw-r--r--Tests/Fortran/Executable/main.f906
2 files changed, 14 insertions, 0 deletions
diff --git a/Tests/Fortran/Executable/CMakeLists.txt b/Tests/Fortran/Executable/CMakeLists.txt
new file mode 100644
index 0000000..7596ff1
--- /dev/null
+++ b/Tests/Fortran/Executable/CMakeLists.txt
@@ -0,0 +1,8 @@
+include_directories(${testf_BINARY_DIR}/Library)
+include_directories(${testf_BINARY_DIR}/External)
+link_directories(${testf_BINARY_DIR}/External)
+
+add_executable(subdir_exe2 main.f90)
+target_link_libraries(subdir_exe2 subdir_mods)
+add_dependencies(subdir_exe2 ExternalTarget)
+target_link_libraries(subdir_exe2 myext)
diff --git a/Tests/Fortran/Executable/main.f90 b/Tests/Fortran/Executable/main.f90
new file mode 100644
index 0000000..f21156c
--- /dev/null
+++ b/Tests/Fortran/Executable/main.f90
@@ -0,0 +1,6 @@
+PROGRAM MAINF90
+ USE libraryModuleA
+ USE libraryModuleB
+ USE externalMod
+ CALL printExtModGreeting
+END PROGRAM MAINF90