GRIB-672: CMake: python bindings do not support numpy

This commit is contained in:
Shahram Najm 2014-12-31 17:33:24 +00:00
parent 8e893723ae
commit 9a8c1de576
1 changed files with 5 additions and 0 deletions

View File

@ -50,6 +50,11 @@ if( HAVE_PYTHON )
set_source_files_properties( gribapi_swig.i PROPERTIES C ON )
if( NUMPY_FOUND )
set( CMAKE_SWIG_FLAGS "-DNUMPY" )
include_directories( ${NUMPY_INCLUDE_DIRS} )
endif()
swig_add_module( gribapi_swig python grib_interface.h grib_interface.c gribapi_swig.i )
swig_link_libraries( gribapi_swig grib_api ${PYTHON_LIBRARIES} )