]> SALOME platform Git repositories - plugins/hexoticplugin.git/commitdiff
Salome HOME
CMake:
authormpa <mpa@opencascade.com>
Thu, 31 Oct 2013 11:28:38 +0000 (11:28 +0000)
committermpa <mpa@opencascade.com>
Thu, 31 Oct 2013 11:28:38 +0000 (11:28 +0000)
- Accumulate environment variables, to be used later to run some command in proper environment.

CMakeLists.txt
SalomeHexoticPLUGINConfig.cmake.in
adm_local/cmake_files/FindSalomeHexoticPLUGIN.cmake

index 6f7741d187526774111b8225ca969f1b07041c4b..b922af0118bc08fa7855dea75b279220dad42e72 100755 (executable)
@@ -199,6 +199,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_HexoticPLUGIN_INSTALL_RES_DATA)
 
+# Accumulate environment variables for HexoticPLUGIN module
+SALOME_ACCUMULATE_ENVIRONMENT(PYTHONPATH NOCHECK ${CMAKE_INSTALL_PREFIX}/${SALOME_INSTALL_BINS}
+                                                 ${CMAKE_INSTALL_PREFIX}/${SALOME_INSTALL_PYTHON})
+SALOME_ACCUMULATE_ENVIRONMENT(LD_LIBRARY_PATH NOCHECK ${CMAKE_INSTALL_PREFIX}/${SALOME_INSTALL_LIBS})
+
 # Sources 
 # ========
 
index a6db03c9b6b1282641adf626f71f6260bd096d3b..6de99cc7b7a7521c57aea50bf33aa3f17c2efa2c 100644 (file)
@@ -46,6 +46,9 @@ SET_AND_CHECK(HexoticPLUGIN_INCLUDE_DIRS "${HexoticPLUGIN_ROOT_DIR_EXP}/@SALOME_
 SET(HexoticPLUGIN_INCLUDE_DIRS "${HexoticPLUGIN_INCLUDE_DIRS};@_SalomeHexoticPLUGIN_EXTRA_HEADERS@")
 SET(HexoticPLUGIN_DEFINITIONS "@SMESH_DEFINITIONS@")
 
+# Package specific environment variables
+@_SalomeHexoticPLUGIN_EXTRA_ENV_FULL@
+
 #### Now the specificities
 
 # Options exported by the package:
index bf4beb905c6bf85513c2608283b8dd4f49bff36f..1b79a401c10c99ae66e01bf3bd6ffed1432e634e 100644 (file)
@@ -29,3 +29,7 @@ SALOME_FIND_PACKAGE(SalomeHexoticPLUGIN SalomeHexoticPLUGIN CONFIG)
 IF(NOT SalomeHexoticPLUGIN_FIND_QUIETLY)
   MESSAGE(STATUS "Found Salome HexoticPLUGIN: ${HexoticPLUGIN_ROOT_DIR}")
 ENDIF()
+
+FOREACH(_res ${SalomeHexoticPLUGIN_EXTRA_ENV})
+  SALOME_ACCUMULATE_ENVIRONMENT(${_res} "${SalomeHexoticPLUGIN_EXTRA_ENV_${_res}}")
+ENDFOREACH()
\ No newline at end of file