diff options
author | Seth R Johnson <johnsonsr@ornl.gov> | 2020-02-22 15:02:47 (GMT) |
---|---|---|
committer | Seth R Johnson <johnsonsr@ornl.gov> | 2020-02-24 17:15:48 (GMT) |
commit | a1909e26accc234de814deb641751bdac3db1e92 (patch) | |
tree | 51e86a61dd6dc1e6afa65f92ba3ebd9d0c29e055 /Tests/UseSWIG/CMakeLists.txt | |
parent | 25ca8e5ce5019c0fb8648f7408b864add6b19d83 (diff) | |
download | CMake-a1909e26accc234de814deb641751bdac3db1e92.zip CMake-a1909e26accc234de814deb641751bdac3db1e92.tar.gz CMake-a1909e26accc234de814deb641751bdac3db1e92.tar.bz2 |
UseSWIG: Enable SWIG Fortran target language
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> |