mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-27 09:50:34 +05:00
CMake:
- Accumulate environment variables, to be used later to run some command in proper environment.
This commit is contained in:
parent
483bcee37f
commit
b998652209
@ -50,7 +50,7 @@ ELSE(EXISTS ${KERNEL_ROOT_DIR})
|
|||||||
ENDIF(EXISTS ${KERNEL_ROOT_DIR})
|
ENDIF(EXISTS ${KERNEL_ROOT_DIR})
|
||||||
|
|
||||||
IF(SALOME_LIGHT_ONLY)
|
IF(SALOME_LIGHT_ONLY)
|
||||||
MESSAGE(FATAL_ERROR "GEOM module can't be built in Light mode (whiout CORBA)")
|
MESSAGE(FATAL_ERROR "GEOM module can't be built in Light mode (without CORBA)")
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
# Platform setup
|
# Platform setup
|
||||||
@ -197,6 +197,12 @@ MARK_AS_ADVANCED(SALOME_INSTALL_PYTHON SALOME_INSTALL_PYTHON_SHARED)
|
|||||||
MARK_AS_ADVANCED(SALOME_GEOM_INSTALL_RES_DATA SALOME_GEOM_INSTALL_RES_SCRIPTS SALOME_GEOM_INSTALL_PLUGINS)
|
MARK_AS_ADVANCED(SALOME_GEOM_INSTALL_RES_DATA SALOME_GEOM_INSTALL_RES_SCRIPTS SALOME_GEOM_INSTALL_PLUGINS)
|
||||||
MARK_AS_ADVANCED(SALOME_INSTALL_AMCONFIG_LOCAL SALOME_INSTALL_DOC)
|
MARK_AS_ADVANCED(SALOME_INSTALL_AMCONFIG_LOCAL SALOME_INSTALL_DOC)
|
||||||
|
|
||||||
|
# Accumulate environment variables for GEOM module
|
||||||
|
SALOME_ACCUMULATE_ENVIRONMENT(PYTHONPATH ${CMAKE_INSTALL_PREFIX}/${SALOME_INSTALL_BINS}
|
||||||
|
${CMAKE_INSTALL_PREFIX}/${SALOME_INSTALL_PYTHON}
|
||||||
|
${CMAKE_INSTALL_PREFIX}/${SALOME_INSTALL_PYTHON_SHARED})
|
||||||
|
SALOME_ACCUMULATE_ENVIRONMENT(LD_LIBRARY_PATH ${CMAKE_INSTALL_PREFIX}/${SALOME_INSTALL_LIBS})
|
||||||
|
|
||||||
# Sources
|
# Sources
|
||||||
# ========
|
# ========
|
||||||
ADD_SUBDIRECTORY(idl)
|
ADD_SUBDIRECTORY(idl)
|
||||||
|
@ -46,6 +46,9 @@ SET_AND_CHECK(GEOM_INCLUDE_DIRS "${GEOM_ROOT_DIR_EXP}/@SALOME_INSTALL_HEADERS@")
|
|||||||
SET(GEOM_INCLUDE_DIRS "${GEOM_INCLUDE_DIRS};@_SalomeGEOM_EXTRA_HEADERS@")
|
SET(GEOM_INCLUDE_DIRS "${GEOM_INCLUDE_DIRS};@_SalomeGEOM_EXTRA_HEADERS@")
|
||||||
SET(GEOM_DEFINITIONS "@KERNEL_DEFINITIONS@")
|
SET(GEOM_DEFINITIONS "@KERNEL_DEFINITIONS@")
|
||||||
|
|
||||||
|
# Package specific environment variables
|
||||||
|
@_SalomeGEOM_EXTRA_ENV_FULL@
|
||||||
|
|
||||||
#### Now the specificities
|
#### Now the specificities
|
||||||
|
|
||||||
# Options exported by the package:
|
# Options exported by the package:
|
||||||
|
@ -29,3 +29,7 @@ SALOME_FIND_PACKAGE(SalomeGEOM SalomeGEOM CONFIG)
|
|||||||
IF(NOT SalomeGEOM_FIND_QUIETLY)
|
IF(NOT SalomeGEOM_FIND_QUIETLY)
|
||||||
MESSAGE(STATUS "Found Salome GEOM: ${GEOM_ROOT_DIR}")
|
MESSAGE(STATUS "Found Salome GEOM: ${GEOM_ROOT_DIR}")
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
|
FOREACH(_res ${SalomeGEOM_EXTRA_ENV})
|
||||||
|
SALOME_ACCUMULATE_ENVIRONMENT(${_res} "${SalomeGEOM_EXTRA_ENV_${_res}}")
|
||||||
|
ENDFOREACH()
|
@ -19,9 +19,13 @@
|
|||||||
# Author: Adrien Bruneton
|
# Author: Adrien Bruneton
|
||||||
#
|
#
|
||||||
|
|
||||||
# OpenCV detection dor Salome
|
# OpenCV detection for Salome
|
||||||
#
|
#
|
||||||
# !! Please read the generic detection procedure in SalomeMacros.cmake !!
|
# !! Please read the generic detection procedure in SalomeMacros.cmake !!
|
||||||
#
|
#
|
||||||
SALOME_FIND_PACKAGE_AND_DETECT_CONFLICTS(OpenCV OpenCV_DIR 2)
|
SALOME_FIND_PACKAGE_AND_DETECT_CONFLICTS(OpenCV OpenCV_DIR 2)
|
||||||
#MARK_AS_ADVANCED()
|
#MARK_AS_ADVANCED()
|
||||||
|
|
||||||
|
IF(OpenCV_FOUND)
|
||||||
|
SALOME_ACCUMULATE_ENVIRONMENT(LD_LIBRARY_PATH ${OpenCV_LIBRARIES})
|
||||||
|
ENDIF()
|
||||||
|
Loading…
Reference in New Issue
Block a user