]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix to add KERNEL and GUI libraries to launch salome in the build environment
authorChristophe Bourcier <christophe.bourcier@cea.fr>
Fri, 1 Dec 2017 15:56:00 +0000 (16:56 +0100)
committerChristophe Bourcier <christophe.bourcier@cea.fr>
Fri, 1 Dec 2017 15:56:00 +0000 (16:56 +0100)
src/ConnectorAPI/Test/CMakeLists.txt

index b25990186610d65c4cd896940dde853c3074f788..1506027b247903987d01443d83f62b2fb1239df3 100755 (executable)
@@ -25,8 +25,18 @@ SET(SALOME_SHAPER_INSTALL_TESTS "${SHAPER_INSTALL_PYTHON_FILES}/test")
 SET(TEST_INSTALL_DIRECTORY ${SALOME_SHAPER_INSTALL_TESTS})
 
 # make test
+SET(SALOME_INSTALL_LIBS "lib/salome")
+# Adding KERNEL and GUI libraries to environment so that Salome launches correctly
+if (WIN32)
+  SALOME_ACCUMULATE_ENVIRONMENT(PATH NOCHECK ${KERNEL_ROOT_DIR}/${SALOME_INSTALL_LIBS})
+  SALOME_ACCUMULATE_ENVIRONMENT(PATH NOCHECK ${GUI_ROOT_DIR}/${SALOME_INSTALL_LIBS})
+else()
+  SALOME_ACCUMULATE_ENVIRONMENT(LD_LIBRARY_PATH NOCHECK ${KERNEL_ROOT_DIR}/${SALOME_INSTALL_LIBS})
+  SALOME_ACCUMULATE_ENVIRONMENT(LD_LIBRARY_PATH NOCHECK ${GUI_ROOT_DIR}/${SALOME_INSTALL_LIBS})
+endif()
 SALOME_GENERATE_TESTS_ENVIRONMENT(tests_env)
 
+
 # -B ${CMAKE_SOURCE_DIR}/doc/salome/examples/testme.py
 FOREACH(tfile ${TEST_NAMES})
   SET(TEST_NAME ${COMPONENT_NAME}_${tfile})