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.
12 lines
331 B
12 lines
331 B
|
|
cmake_policy(SET CMP0078 NEW)
|
|
|
|
find_package(Python REQUIRED COMPONENTS Development)
|
|
find_package (SWIG REQUIRED)
|
|
include(UseSWIG)
|
|
|
|
set_property (SOURCE example.i PROPERTY SWIG_MODULE_NAME "new_example")
|
|
|
|
swig_add_library(example LANGUAGE python TYPE MODULE SOURCES example.i)
|
|
target_link_libraries(example PRIVATE Python::Module)
|