diff options
author | Marc Chevrier <marc.chevrier@sap.com> | 2018-01-29 09:40:25 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@sap.com> | 2018-02-14 07:35:04 (GMT) |
commit | 0bef9eb410566aa10536331d086d4a3ee265a526 (patch) | |
tree | 98047f3821f494aaa2967733938ed6fd73c522bd /Tests/RunCMake/UseSWIG/BasicPython.cmake | |
parent | d6048bd153979c268a2943b26fd71be7c5f11251 (diff) | |
download | CMake-0bef9eb410566aa10536331d086d4a3ee265a526.zip CMake-0bef9eb410566aa10536331d086d4a3ee265a526.tar.gz CMake-0bef9eb410566aa10536331d086d4a3ee265a526.tar.bz2 |
UseSWIG: modernize module
Diffstat (limited to 'Tests/RunCMake/UseSWIG/BasicPython.cmake')
-rw-r--r-- | Tests/RunCMake/UseSWIG/BasicPython.cmake | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/RunCMake/UseSWIG/BasicPython.cmake b/Tests/RunCMake/UseSWIG/BasicPython.cmake new file mode 100644 index 0000000..0d8c824 --- /dev/null +++ b/Tests/RunCMake/UseSWIG/BasicPython.cmake @@ -0,0 +1,9 @@ + +set(language "python") + +include (BasicConfiguration.cmake) + +add_custom_target (RunTest + COMMAND "${CMAKE_COMMAND}" -E env "PYTHONPATH=$<TARGET_FILE_DIR:example>" + "${PYTHON_EXECUTABLE}" "${CMAKE_CURRENT_SOURCE_DIR}/runme.py" + DEPENDS example) |