diff options
author | Rishi Theivendran <rishi.theivendran@rohde-schwarz.com> | 2018-06-08 20:15:18 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-06-12 15:34:58 (GMT) |
commit | 0c2fb4c8964b6164c44e8641c8c9225369c0228b (patch) | |
tree | 732c27065bfe1e317da5dd95d12e6d85bd16f215 /Tests/UseSWIG/CMakeLists.txt | |
parent | 90ebc32d9e7400a590973b30c99f2986bcb2b755 (diff) | |
download | CMake-0c2fb4c8964b6164c44e8641c8c9225369c0228b.zip CMake-0c2fb4c8964b6164c44e8641c8c9225369c0228b.tar.gz CMake-0c2fb4c8964b6164c44e8641c8c9225369c0228b.tar.bz2 |
UseSWIG: Add CSHARP variant for wrapper files
Issue: #18065
Fixes: #18066
Diffstat (limited to 'Tests/UseSWIG/CMakeLists.txt')
-rw-r--r-- | Tests/UseSWIG/CMakeLists.txt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Tests/UseSWIG/CMakeLists.txt b/Tests/UseSWIG/CMakeLists.txt index 0c4ec8a..cc29b77 100644 --- a/Tests/UseSWIG/CMakeLists.txt +++ b/Tests/UseSWIG/CMakeLists.txt @@ -19,6 +19,20 @@ add_test(NAME UseSWIG.LegacyPerl COMMAND --test-command ${CMAKE_CTEST_COMMAND} -V -C $<CONFIGURATION> ) +include(CheckLanguage) +check_language(CSharp) +if (CMAKE_CSharp_COMPILER) + add_test(NAME UseSWIG.BasicCsharp COMMAND + ${CMAKE_CTEST_COMMAND} -C $<CONFIGURATION> + --build-and-test + "${CMake_SOURCE_DIR}/Tests/UseSWIG/BasicCsharp" + "${CMake_BINARY_DIR}/Tests/UseSWIG/BasicCsharp" + ${build_generator_args} + --build-project TestBasicCsharp + --build-options ${build_options} + --test-command ${CMAKE_CTEST_COMMAND} -V -C $<CONFIGURATION> + ) +endif() add_test(NAME UseSWIG.BasicPython COMMAND ${CMAKE_CTEST_COMMAND} -C $<CONFIGURATION> |