]> SALOME platform Git repositories - plugins/blsurfplugin.git/commitdiff
Salome HOME
CMake:
authormpa <mpa@opencascade.com>
Tue, 29 Oct 2013 14:00:18 +0000 (14:00 +0000)
committermpa <mpa@opencascade.com>
Tue, 29 Oct 2013 14:00:18 +0000 (14:00 +0000)
- Accumulate environment variables, to be used later to run some command in proper environment.

CMakeLists.txt
SalomeBLSURFPLUGINConfig.cmake.in

index 5333e34f24c4c19a84319d1132b9fbba6c6f4ff9..4a3a99a6b5e927ef289674574730169a8c711c16 100755 (executable)
@@ -186,6 +186,11 @@ MARK_AS_ADVANCED(SALOME_INSTALL_PYTHON SALOME_INSTALL_PYTHON_SHARED)
 MARK_AS_ADVANCED(SALOME_INSTALL_AMCONFIG_LOCAL SALOME_INSTALL_DOC)
 MARK_AS_ADVANCED(SALOME_BLSURFPLUGIN_INSTALL_RES_DATA SALOME_BLSURFPLUGIN_INSTALL_TESTS)
 
+# Accumulate environment variables for BLSURFPLUGIN module
+SALOME_ACCUMULATE_ENVIRONMENT(PYTHONPATH ${CMAKE_INSTALL_PREFIX}/${SALOME_INSTALL_BINS}
+                                         ${CMAKE_INSTALL_PREFIX}/${SALOME_INSTALL_PYTHON})
+SALOME_ACCUMULATE_ENVIRONMENT(LD_LIBRARY_PATH ${CMAKE_INSTALL_PREFIX}/${SALOME_INSTALL_LIBS}) 
+
 # Sources 
 # ========
 
index 94f92feeb2eb9676e2cb22ac46c2ac8842d79d22..5b28ef0a56700822542a64b755c1909565ea10dc 100644 (file)
@@ -46,6 +46,9 @@ SET_AND_CHECK(BLSURFPLUGIN_INCLUDE_DIRS "${BLSURFPLUGIN_ROOT_DIR_EXP}/@SALOME_IN
 SET(BLSURFPLUGIN_INCLUDE_DIRS "${BLSURFPLUGIN_INCLUDE_DIRS};@_SalomeBLSURFPLUGIN_EXTRA_HEADERS@")
 SET(BLSURFPLUGIN_DEFINITIONS "@SMESH_DEFINITIONS@")
 
+# Package specific environment variables
+@_SalomeBLSURFPLUGIN_EXTRA_ENV_FULL@
+
 #### Now the specificities
 
 # Options exported by the package: