diff options
author | Brad King <brad.king@kitware.com> | 2009-10-23 12:24:51 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-10-23 12:24:51 (GMT) |
commit | eb3d02e35121fc91b8a70eafcf9a4a55c3eb59a0 (patch) | |
tree | fe94c595174e1f32c6342a3f30914296c48f7dba /Tests/Fortran/CMakeLists.txt | |
parent | 867a1cc12c9212b286efce0647a510486501c1a5 (diff) | |
download | CMake-eb3d02e35121fc91b8a70eafcf9a4a55c3eb59a0.zip CMake-eb3d02e35121fc91b8a70eafcf9a4a55c3eb59a0.tar.gz CMake-eb3d02e35121fc91b8a70eafcf9a4a55c3eb59a0.tar.bz2 |
Test all target types in Fortran
This teaches the Fortran test to try all basic target types (archive,
shared lib, exe) with Fortran-only sources.
Diffstat (limited to 'Tests/Fortran/CMakeLists.txt')
-rw-r--r-- | Tests/Fortran/CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Tests/Fortran/CMakeLists.txt b/Tests/Fortran/CMakeLists.txt index adcadd4..3e890c8 100644 --- a/Tests/Fortran/CMakeLists.txt +++ b/Tests/Fortran/CMakeLists.txt @@ -7,8 +7,11 @@ message("CMAKE_Fortran_COMPILER_INIT = ${CMAKE_Fortran_COMPILER_INIT}") 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) +add_library(hello STATIC hello.f) +add_library(world SHARED world.f) +add_executable(testf testf.f) +target_link_libraries(testf hello world) function(test_fortran_c_interface_module) message(STATUS "Testing FortranCInterface module") |