]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
CMake:
authormpa <mpa@opencascade.com>
Wed, 4 Dec 2013 05:39:29 +0000 (05:39 +0000)
committermpa <mpa@opencascade.com>
Wed, 4 Dec 2013 05:39:29 +0000 (05:39 +0000)
-generate tests environment to run test

src/MEDPartitioner/Test/CMakeLists.txt
src/RENUMBER_Swig/CMakeLists.txt

index f981249c878d12db089146755d123ec6212dd653..301e159c0bc7e25ad9b042a01b8b84f57d27e55e 100644 (file)
@@ -51,4 +51,6 @@ INSTALL(TARGETS TestMEDPARTITIONER DESTINATION ${SALOME_INSTALL_BINS})
 
 INSTALL(FILES ${MEDPARTITIONERTest_HEADERS_HXX} DESTINATION ${SALOME_INSTALL_HEADERS})
 
+SALOME_GENERATE_TESTS_ENVIRONMENT(tests_env)
 ADD_TEST(TestMEDPARTITIONER TestMEDPARTITIONER)
+SET_TESTS_PROPERTIES(TestMEDPARTITIONER PROPERTIES ENVIRONMENT "${tests_env}")   
index 128e365f56dead5d09d4bcaf40440b46b69d338c..3b36feefe6c895e8276443adfc4817d578369702 100644 (file)
@@ -65,4 +65,6 @@ INSTALL_AND_COMPILE_PYTHON_FILE("${PYFILES_TO_INSTALL}" ${SALOME_INSTALL_SCRIPT_
 INSTALL(FILES MEDRenumber.i MEDRenumberCommon.i DESTINATION ${SALOME_INSTALL_HEADERS})
 INSTALL(FILES MEDRenumberTest.py DESTINATION ${SALOME_INSTALL_SCRIPT_PYTHON})
 
+SALOME_GENERATE_TESTS_ENVIRONMENT(tests_env)
 ADD_TEST(MEDRenumberTest ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/MEDRenumberTest.py)
+SET_TESTS_PROPERTIES(MEDRenumberTest PROPERTIES ENVIRONMENT "${tests_env}")