From: ndjinga Date: Wed, 30 Sep 2020 13:00:05 +0000 (+0200) Subject: Added WITH_NUMPY in cmake definitions. Added include drectory for numpy files X-Git-Tag: V9_6_0~40 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c3ec15e54c06ca9bbb4b3d4ee4e8fb895126987a;p=tools%2Fsolverlab.git Added WITH_NUMPY in cmake definitions. Added include drectory for numpy files --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 229bf0e..e053c9c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -41,6 +41,8 @@ list (APPEND CMAKE_MODULE_PATH "${SOLVERLAB_SOURCE_DIR}/cmake_files") include(ExternalProject)#For PETSc, MED and MEDCoupling +ADD_DEFINITIONS(-DWITH_NUMPY) + ###################################################### # Detection or compilation of PETSc+SLEPc+HDF5 # ###################################################### @@ -416,6 +418,9 @@ ELSE (${CMAKE_VERSION} VERSION_GREATER "3.12.0") set(Python_VERSION_MINOR ${PYTHON_VERSION_MINOR}) ENDIF(${CMAKE_VERSION} VERSION_GREATER "3.12.0") +# Bug MEDCoupling9.5.0 -> On ajoute les include de numpy +set(Python_INCLUDE_DIRS ${Python_INCLUDE_DIRS} $ENV{PYTHON_ROOT_DIR}/lib/python${Python_VERSION_MAJOR}.${Python_VERSION_MINOR}/site-packages/numpy/core/include) + #Paraview library paths set (PV_LIB_DIR /usr/lib/python${Python_VERSION_MAJOR}.${Python_VERSION_MINOR}/dist-packages/paraview/:/usr/lib64/python${Python_VERSION_MAJOR}.${Python_VERSION_MINOR}/site-packages/vtk/:${PARAVIEW_LIBRARIES_DIR}) set (PV_PYTHON_DIR /usr/lib/python${Python_VERSION_MAJOR}.${Python_VERSION_MINOR}/dist-packages/paraview/:/usr/lib64/python${Python_VERSION_MAJOR}.${Python_VERSION_MINOR}/site-packages/vtk/:/usr/lib64/paraview/site-packages/:/usr/lib64/paraview/site-packages/paraview/:/usr/lib64/paraview/site-packages/vtk/:/usr/lib64/paraview/python${Python_VERSION_MAJOR}.${Python_VERSION_MINOR}/site-packages/:/usr/lib64/paraview/python${Python_VERSION_MAJOR}.${Python_VERSION_MINOR}/site-packages/paraview/:/usr/lib64/paraview/python${Python_VERSION_MAJOR}.${Python_VERSION_MINOR}/site-packages/vtkmodules:/usr/lib/paraview/site-packages/paraview:/usr/lib/paraview/site-packages/paraview/vtk)