diff options
Diffstat (limited to 'Tests/UseSWIG/CMakeLists.txt')
-rw-r--r-- | Tests/UseSWIG/CMakeLists.txt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Tests/UseSWIG/CMakeLists.txt b/Tests/UseSWIG/CMakeLists.txt index 3cc910f..d102846 100644 --- a/Tests/UseSWIG/CMakeLists.txt +++ b/Tests/UseSWIG/CMakeLists.txt @@ -55,6 +55,21 @@ add_test(NAME UseSWIG.BasicPerl COMMAND --test-command ${CMAKE_CTEST_COMMAND} -V -C $<CONFIGURATION> ) +if (CMake_TEST_UseSWIG_Fortran) + check_language(Fortran) + if (CMAKE_Fortran_COMPILER) + add_test(NAME UseSWIG.BasicFortran COMMAND + ${CMAKE_CTEST_COMMAND} -C $<CONFIGURATION> + --build-and-test + "${CMake_SOURCE_DIR}/Tests/UseSWIG/BasicFortran" + "${CMake_BINARY_DIR}/Tests/UseSWIG/BasicFortran" + ${build_generator_args} + --build-project TestBasicFortran + --build-options ${build_options} + --test-command ${CMAKE_CTEST_COMMAND} -V -C $<CONFIGURATION> + ) + endif() +endif() add_test(NAME UseSWIG.MultipleModules COMMAND ${CMAKE_CTEST_COMMAND} -C $<CONFIGURATION> |