Commit 585f9663 authored by Purves, Murray's avatar Purves, Murray
Browse files

WIP Adding Python bindings as separate subpackage

parent 194d426e
Pipeline #28291 failed with stages
in 1 minute and 2 seconds
......@@ -15,4 +15,5 @@ TRIBITS_PACKAGE_DEFINE_DEPENDENCIES(
plot radixplot SS OPTIONAL
widgets radixwidgets SS OPTIONAL
ams radixams SS OPTIONAL
py radixpy SS OPTIONAL
)
TRIBITS_SUBPACKAGE(py)
# we need Python 3 for this
FIND_PACKAGE(Python3 COMPONENTS Interpreter Development)
IF(PYTHON3_FOUND)
MESSAGE(STATUS "Found Python 3 - version ${PYTHON3_VERSION}")
MESSAGE(STATUS "Executable: ${PYTHON3_EXECUTABLE}")
MESSAGE(STATUS "Include dirs: ${PYTHON3_INCLUDE_DIRS}")
ENDIF()
INCLUDE_DIRECTORIES(${PYTHON3_INCLUDE_DIRS})
SET(INTERPOLATE_SOURCE
radixmathpy/interpolatemodule.cc
)
SET(HEADERS
python_utils.hh
)
#
# Add library
TRIBITS_ADD_LIBRARY(radix_interpolate
SOURCES ${INTERPOLATE_SOURCE}
NOINSTALLHEADERS ${HEADERS}
)
TRIBITS_SUBPACKAGE_POSTPROCESS()
// May have to use Python/Python.h for mac?
#include <Python.h>
#include <vector>
#include "../interpolate.hh"
//#include "radixmath/interpolate.hh"
#include "radixmath/interpolate.hh"
#include "python_utils.hh"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment