From: ageay Date: Mon, 8 Jul 2013 10:36:06 +0000 (+0000) Subject: addition of numpy X-Git-Tag: B4KillOfAutomake~19 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e7a3852ea47e3753f75e30b249f7a4eeece4a1e6;p=modules%2Fkernel.git addition of numpy --- diff --git a/salome_adm/cmake_files/FindSalomePython.cmake b/salome_adm/cmake_files/FindSalomePython.cmake index 754248dcf..bdc75473f 100644 --- a/salome_adm/cmake_files/FindSalomePython.cmake +++ b/salome_adm/cmake_files/FindSalomePython.cmake @@ -132,6 +132,19 @@ IF (SALOMEPYTHON_FOUND) ENDIF() # 6. Specifics + + EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "import numpy ; import sys ; sys.stdout.write(numpy.get_include())" OUTPUT_VARIABLE NUMPY_INCLUDE_DIR ERROR_QUIET ) + IF(NUMPY_INCLUDE_DIR) + SET(NUMPY_FOUND TRUE) + ENDIF(NUMPY_INCLUDE_DIR) + IF(NUMPY_FOUND) + SET(PYTHON_INCLUDE_DIRS ${NUMPY_INCLUDE_DIR} ${PYTHON_INCLUDE_DIRS}) + SET(PYTHON_DEFINITIONS "${PYTHON_DEFINITIONS} -DWITH_NUMPY") + MESSAGE(STATUS "numpy found : ${NUMPY_INCLUDE_DIR}") + ELSE(NUMPY_FOUND) + MESSAGE(STATUS "numpy not found") + ENDIF(NUMPY_FOUND) + ## None here ELSE() MESSAGE(STATUS "Python was only partially (or not at all) found .")