summaryrefslogtreecommitdiffstats
path: root/Tests/UseSWIG/CMakeLists.txt
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2019-04-17 10:23:15 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2019-05-03 16:20:17 (GMT)
commite3919bae17d3442e18b5ec1f4a1ae994c87c455b (patch)
tree466c72ae4938936780a97c37d8234123f4fa2767 /Tests/UseSWIG/CMakeLists.txt
parent186ca170da51d64a50bb15bfd067ca9b4c987327 (diff)
downloadCMake-e3919bae17d3442e18b5ec1f4a1ae994c87c455b.zip
CMake-e3919bae17d3442e18b5ec1f4a1ae994c87c455b.tar.gz
CMake-e3919bae17d3442e18b5ec1f4a1ae994c87c455b.tar.bz2
UseSWIG: Manage alternate library name
Manage alternate library name by passing -interface <library_name> for python language or -dllimport <library_name> for CSharp language to the SWIG compiler. Fixes: #18771
Diffstat (limited to 'Tests/UseSWIG/CMakeLists.txt')
-rw-r--r--Tests/UseSWIG/CMakeLists.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/Tests/UseSWIG/CMakeLists.txt b/Tests/UseSWIG/CMakeLists.txt
index 434895e..3cc910f 100644
--- a/Tests/UseSWIG/CMakeLists.txt
+++ b/Tests/UseSWIG/CMakeLists.txt
@@ -123,3 +123,15 @@ add_test(NAME UseSWIG.SwigSrcFileExtension COMMAND
--build-options ${build_options}
--test-command ${CMAKE_CTEST_COMMAND} -V -C $<CONFIGURATION>
)
+
+
+add_test(NAME UseSWIG.AlternateLibraryName COMMAND
+ ${CMAKE_CTEST_COMMAND} -C $<CONFIGURATION>
+ --build-and-test
+ "${CMake_SOURCE_DIR}/Tests/UseSWIG/AlternateLibraryName"
+ "${CMake_BINARY_DIR}/Tests/UseSWIG/AlternateLibraryName"
+ ${build_generator_args}
+ --build-project TestAlternateLibraryName
+ --build-options ${build_options}
+ --test-command ${CMAKE_CTEST_COMMAND} -V -C $<CONFIGURATION>
+ )