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
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
%module(package="csmapi") geometricmodel
%include <std_vector.i>
%template(VecInt) std::vector<int>;
%{
    #include "GeometricModel.h"
%}
+11 −11
Original line number Diff line number Diff line
@@ -62,7 +62,8 @@ if(NOT CMAKE_FIND_ANACONDA_PYTHON_INCLUDED)
    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 "")
    else()
      set( _py_ext "m")
@@ -99,4 +100,3 @@ if(NOT CMAKE_FIND_ANACONDA_PYTHON_INCLUDED)
  message( "PYTHON_INCLUDE_DIR = ${PYTHON_INCLUDE_DIR}")
  message( "PYTHON_LIBRARY = ${PYTHON_LIBRARY}")
endif()