]> SALOME platform Git repositories - modules/med.git/commitdiff
Salome HOME
CMake:
authormpa <mpa@opencascade.com>
Mon, 9 Dec 2013 08:09:35 +0000 (08:09 +0000)
committermpa <mpa@opencascade.com>
Mon, 9 Dec 2013 08:09:35 +0000 (08:09 +0000)
- add environment property for test

src/INTERP_KERNELTest/CMakeLists.txt
src/MEDLoader/Test/CMakeLists.txt

index 1132085623274a261438620b949357a22207a306..6d3bb0e077ac44856f63baf9809ed24cf09606e9 100644 (file)
@@ -80,6 +80,8 @@ TARGET_LINK_LIBRARIES(InterpKernelTest medloader medcoupling interpkernel ${CPPU
 ADD_EXECUTABLE(TestINTERP_KERNEL ${TestINTERP_KERNEL_SOURCES})
 TARGET_LINK_LIBRARIES(TestINTERP_KERNEL InterpKernelTest ${CPPUNIT_LIBRARIES} ${PLATFORM_LIBS})
 ADD_TEST(TestINTERP_KERNEL TestINTERP_KERNEL)
+SALOME_GENERATE_TESTS_ENVIRONMENT(tests_env)
+SET_TESTS_PROPERTIES(TestINTERP_KERNEL PROPERTIES ENVIRONMENT "${tests_env}")
 
 INSTALL(TARGETS TestINTERP_KERNEL DESTINATION ${SALOME_INSTALL_BINS})
 INSTALL(TARGETS InterpKernelTest DESTINATION ${SALOME_INSTALL_LIBS})
index ccc78ea8b505834b77f6d1fc315ba39f0fba8922..62cbd28ae17bb9b2bb9e0d2a0be9cddc29aad0da 100644 (file)
@@ -47,5 +47,7 @@ ADD_EXECUTABLE(TestSauvLoader ${TestSauvLoader_SOURCES})
 
 TARGET_LINK_LIBRARIES(TestSauvLoader medloader ${CPPUNIT_LIBRARIES} ${PLATFORM_LIBS})
 ADD_TEST(TestSauvLoader TestSauvLoader)
+SALOME_GENERATE_TESTS_ENVIRONMENT(tests_env)
+SET_TESTS_PROPERTIES(TestSauvLoader PROPERTIES ENVIRONMENT "${tests_env}")
 
 INSTALL(TARGETS TestMEDLoader TestSauvLoader DESTINATION ${SALOME_INSTALL_BINS})