STYLE: Nightly Version update
[cmake.git] / Tests / Fortran / CMakeLists.txt
blob57634cf1c07db70d843b137235a34bc9350b38a5
1 PROJECT(testf Fortran)
2 SET(CMAKE_VERBOSE_MAKEFILE 1)
3 MESSAGE("ENV_FLAGS = $ENV{FFLAGS}")
4 MESSAGE("CMAKE_Fortran_COMPILER_INIT = ${CMAKE_Fortran_COMPILER_INIT}")
5 MESSAGE("CMAKE_Fortran_COMPILER_FULLPATH = ${CMAKE_Fortran_COMPILER_FULLPATH}")
6 MESSAGE("CMAKE_Fortran_COMPILER = ${CMAKE_Fortran_COMPILER}")
7 MESSAGE("CMAKE_Fortran_FLAGS = ${CMAKE_Fortran_FLAGS}")
8 ADD_EXECUTABLE(testf hello.f)
10 IF(CMAKE_Fortran_COMPILER_SUPPORTS_F90 AND CMAKE_GENERATOR_NEW)
11   ADD_EXECUTABLE(test_module
12     test_module_main.f90
13     test_module_implementation.f90
14     test_module_interface.f90)
15 ENDIF(CMAKE_Fortran_COMPILER_SUPPORTS_F90 AND CMAKE_GENERATOR_NEW)