summaryrefslogtreecommitdiffstats
path: root/Tests/UseSWIG/CMakeLists.txt
diff options
context:
space:
mode:
authorThirumal Venkat <me@thirumal.in>2018-12-29 16:45:26 (GMT)
committerThirumal Venkat <me@thirumal.in>2019-01-03 04:06:15 (GMT)
commit9816748847fba47bb0633b49cff1432fd677897e (patch)
tree1ba36f77e79827041b0b80a7572d4b5f4d8138a9 /Tests/UseSWIG/CMakeLists.txt
parentefdc19c58b64cf2fece50cc241a186972e5afa19 (diff)
downloadCMake-9816748847fba47bb0633b49cff1432fd677897e.zip
CMake-9816748847fba47bb0633b49cff1432fd677897e.tar.gz
CMake-9816748847fba47bb0633b49cff1432fd677897e.tar.bz2
SWIG: Add support for custom Swig source file extensions
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 f79cda6..434895e 100644
--- a/Tests/UseSWIG/CMakeLists.txt
+++ b/Tests/UseSWIG/CMakeLists.txt
@@ -111,3 +111,15 @@ add_test(NAME UseSWIG.ModuleName COMMAND
--build-options ${build_options}
--test-command ${CMAKE_CTEST_COMMAND} -V -C $<CONFIGURATION>
)
+
+
+add_test(NAME UseSWIG.SwigSrcFileExtension COMMAND
+ ${CMAKE_CTEST_COMMAND} -C $<CONFIGURATION>
+ --build-and-test
+ "${CMake_SOURCE_DIR}/Tests/UseSWIG/SwigSrcFileExtension"
+ "${CMake_BINARY_DIR}/Tests/UseSWIG/SwigSrcFileExtension"
+ ${build_generator_args}
+ --build-project SwigSrcFileExtension
+ --build-options ${build_options}
+ --test-command ${CMAKE_CTEST_COMMAND} -V -C $<CONFIGURATION>
+ )