Skip to content
Snippets Groups Projects
Unverified Commit efc6b996 authored by Jesse Mapel's avatar Jesse Mapel Committed by GitHub
Browse files

Added template for vector of integers (#24)

* Fixed Python 3.8 lib name in CMake

* Added template for vector of ints
parent 0e86971e
No related branches found
No related tags found
No related merge requests found
%module(package="csmapi") geometricmodel %module(package="csmapi") geometricmodel
%include <std_vector.i>
%template(VecInt) std::vector<int>;
%{ %{
#include "GeometricModel.h" #include "GeometricModel.h"
%} %}
......
...@@ -62,7 +62,8 @@ if(NOT CMAKE_FIND_ANACONDA_PYTHON_INCLUDED) ...@@ -62,7 +62,8 @@ if(NOT CMAKE_FIND_ANACONDA_PYTHON_INCLUDED)
set( ANACONDA_PYTHON_VERSION ${_py_version_major}.${_py_version_minor} ) set( ANACONDA_PYTHON_VERSION ${_py_version_major}.${_py_version_minor} )
if( ${_py_version_major} MATCHES 2 ) if( (${_py_version_major} MATCHES 2) OR
(${_py_version_major} MATCHES 3 AND ${_py_version_minor} MATCHES 8) )
set( _py_ext "") set( _py_ext "")
else() else()
set( _py_ext "m") set( _py_ext "m")
...@@ -99,4 +100,3 @@ if(NOT CMAKE_FIND_ANACONDA_PYTHON_INCLUDED) ...@@ -99,4 +100,3 @@ if(NOT CMAKE_FIND_ANACONDA_PYTHON_INCLUDED)
message( "PYTHON_INCLUDE_DIR = ${PYTHON_INCLUDE_DIR}") message( "PYTHON_INCLUDE_DIR = ${PYTHON_INCLUDE_DIR}")
message( "PYTHON_LIBRARY = ${PYTHON_LIBRARY}") message( "PYTHON_LIBRARY = ${PYTHON_LIBRARY}")
endif() endif()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment