summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/UseSWIG/CMP0078-common.cmake
blob: b13796b55a812ad38deb31866bb62a85829dec66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12

cmake_policy(SET CMP0086 NEW)

set(SWIG_EXECUTABLE "swig")
set(SWIG_DIR "/swig")
include(UseSWIG)

swig_add_library(example LANGUAGE python TYPE MODULE SOURCES example.i)

get_property(prefix TARGET ${SWIG_MODULE_example_REAL_NAME} PROPERTY PREFIX)
message(STATUS "PREFIX='${prefix}'")
message(STATUS "TARGET NAME='${SWIG_MODULE_example_REAL_NAME}'")