]> SALOME platform Git repositories - modules/med.git/commitdiff
Salome HOME
Temporary fix: specify missing environment for tests (should be done with SALOME_COLL...
authorvsr <vsr@opencascade.com>
Thu, 21 Nov 2013 16:02:20 +0000 (16:02 +0000)
committervsr <vsr@opencascade.com>
Thu, 21 Nov 2013 16:02:20 +0000 (16:02 +0000)
src/MEDCoupling_Swig/CMakeLists.txt

index c7310f6487d081377c774d8d470f1f1861e5e9e7..e6454ece2c75e24d9a030e044f05b79e01dba0c1 100644 (file)
@@ -85,6 +85,10 @@ INSTALL(FILES MEDCouplingExamplesTest.py DESTINATION ${SALOME_INSTALL_SCRIPT_PYT
 ADD_TEST(MEDCouplingBasicsTest ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/MEDCouplingBasicsTest.py)
 ADD_TEST(MEDCouplingExamplesTest ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/MEDCouplingExamplesTest.py)
 ADD_TEST(MEDCouplingRemapperTest ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/MEDCouplingRemapperTest.py)
+SET_TESTS_PROPERTIES(MEDCouplingBasicsTest MEDCouplingExamplesTest MEDCouplingRemapperTest
+                     PROPERTIES ENVIRONMENT "LD_LIBRARY_PATH=${CMAKE_INSTALL_PREFIX}/${SALOME_INSTALL_LIBS}:$ENV{LD_LIBRARY_PATH}")
 IF(NUMPY_FOUND)
   ADD_TEST(MEDCouplingNumPyTest ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/MEDCouplingNumPyTest.py)
+  SET_TESTS_PROPERTIES(MEDCouplingNumPyTest
+                       PROPERTIES ENVIRONMENT "LD_LIBRARY_PATH=${CMAKE_INSTALL_PREFIX}/${SALOME_INSTALL_LIBS}:$ENV{LD_LIBRARY_PATH}")
 ENDIF(NUMPY_FOUND)