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/BasicCsharp | |
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/BasicCsharp')
-rw-r--r-- | Tests/UseSWIG/BasicCsharp/CMakeLists.txt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Tests/UseSWIG/BasicCsharp/CMakeLists.txt b/Tests/UseSWIG/BasicCsharp/CMakeLists.txt new file mode 100644 index 0000000..84743ef --- /dev/null +++ b/Tests/UseSWIG/BasicCsharp/CMakeLists.txt @@ -0,0 +1,21 @@ +cmake_minimum_required(VERSION 3.12) + +project(TestBasicCsharp CXX CSharp) + +include(CTest) + +set(language "csharp") + +include (../BasicConfiguration.cmake) + +set_source_files_properties(Square.cs Circle.cs Shape.cs PROPERTIES GENERATED 1) +add_library(example_cs SHARED $<TARGET_PROPERTY:example,SWIG_SUPPORT_FILES> Square.cs Circle.cs Shape.cs) +set_target_properties(example_cs PROPERTIES LINKER_LANGUAGE CSharp) +target_link_libraries(example_cs example) + +add_executable(runme ${CMAKE_CURRENT_SOURCE_DIR}/../runme.cs) +target_link_libraries(runme example_cs) +set_target_properties(runme PROPERTIES LINKER_LANGUAGE CSharp) + +add_test (NAME BasicCsharp + COMMAND $<TARGET_FILE:runme>) |