summaryrefslogtreecommitdiffstats
path: root/Tests/Fortran/CMakeLists.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2005-02-15 14:01:14 (GMT)
committerBrad King <brad.king@kitware.com>2005-02-15 14:01:14 (GMT)
commiteb9164bf0ee20ec53d53b88087d977ccaac928e1 (patch)
tree4f1c36908fdb3692a5595a939276a0eedf5a9ed2 /Tests/Fortran/CMakeLists.txt
parent23dfc9440a0a82ec00c48cbd2177b43f2cea76f6 (diff)
downloadCMake-eb9164bf0ee20ec53d53b88087d977ccaac928e1.zip
CMake-eb9164bf0ee20ec53d53b88087d977ccaac928e1.tar.gz
CMake-eb9164bf0ee20ec53d53b88087d977ccaac928e1.tar.bz2
ENH: Added Fortran 90 test if the platform supports it.
Diffstat (limited to 'Tests/Fortran/CMakeLists.txt')
-rw-r--r--Tests/Fortran/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/Fortran/CMakeLists.txt b/Tests/Fortran/CMakeLists.txt
index 6d08f5e..57634cf 100644
--- a/Tests/Fortran/CMakeLists.txt
+++ b/Tests/Fortran/CMakeLists.txt
@@ -6,3 +6,10 @@ MESSAGE("CMAKE_Fortran_COMPILER_FULLPATH = ${CMAKE_Fortran_COMPILER_FULLPATH}")
MESSAGE("CMAKE_Fortran_COMPILER = ${CMAKE_Fortran_COMPILER}")
MESSAGE("CMAKE_Fortran_FLAGS = ${CMAKE_Fortran_FLAGS}")
ADD_EXECUTABLE(testf hello.f)
+
+IF(CMAKE_Fortran_COMPILER_SUPPORTS_F90 AND CMAKE_GENERATOR_NEW)
+ ADD_EXECUTABLE(test_module
+ test_module_main.f90
+ test_module_implementation.f90
+ test_module_interface.f90)
+ENDIF(CMAKE_Fortran_COMPILER_SUPPORTS_F90 AND CMAKE_GENERATOR_NEW)