You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
352 B
13 lines
352 B
|
|
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}'")
|