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/BasicConfiguration.cmake | |
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/BasicConfiguration.cmake')
-rw-r--r-- | Tests/UseSWIG/BasicConfiguration.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/UseSWIG/BasicConfiguration.cmake b/Tests/UseSWIG/BasicConfiguration.cmake index d025d2a..fd3ac40 100644 --- a/Tests/UseSWIG/BasicConfiguration.cmake +++ b/Tests/UseSWIG/BasicConfiguration.cmake @@ -15,6 +15,9 @@ unset(SWIG_LANG_DEFINITIONS) unset(SWIG_LANG_OPTIONS) unset(SWIG_LANG_LIBRARIES) +if(${language} MATCHES csharp) + set(SWIG_LANG_TYPE TYPE SHARED) +endif() if(${language} MATCHES python) find_package(Python REQUIRED COMPONENTS Interpreter Development) set(SWIG_LANG_INCLUDE_DIRECTORIES ${Python_INCLUDE_DIRS}) @@ -76,4 +79,5 @@ SWIG_ADD_LIBRARY(example ${SWIG_LANG_TYPE} SOURCES "${CMAKE_CURRENT_LIST_DIR}/example.i" "${CMAKE_CURRENT_LIST_DIR}/example.cxx") +TARGET_INCLUDE_DIRECTORIES(example PUBLIC ${CMAKE_CURRENT_LIST_DIR}) TARGET_LINK_LIBRARIES(example PRIVATE ${SWIG_LANG_LIBRARIES}) |