From b3b5cf521260c73706c592193ca2d7df04d3efcd Mon Sep 17 00:00:00 2001 From: mpv Date: Tue, 6 Oct 2015 08:59:31 +0300 Subject: [PATCH] Adaptation of compilation procedure in SALOME environment --- CMakeCommon/FindCAS.cmake | 115 +++++++++++++++++++------------------- 1 file changed, 58 insertions(+), 57 deletions(-) diff --git a/CMakeCommon/FindCAS.cmake b/CMakeCommon/FindCAS.cmake index 3abac49ee..745622ff3 100644 --- a/CMakeCommon/FindCAS.cmake +++ b/CMakeCommon/FindCAS.cmake @@ -26,8 +26,9 @@ ENDIF() SET(_CAS_VERSION_FILE_NAME Standard_Version.hxx) # Include directories: -FIND_PATH(CAS_INCLUDE_DIRS ${_CAS_VERSION_FILE_NAME} PATH_SUFFIXES inc) -FIND_FILE(CAS_VERSION_FILE ${_CAS_VERSION_FILE_NAME} PATH_SUFFIXES inc) +FIND_PATH(CAS_INCLUDE_DIRS NAMES ${_CAS_VERSION_FILE_NAME} HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES inc) +FIND_FILE(CAS_VERSION_FILE NAMES ${_CAS_VERSION_FILE_NAME} HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES inc) + MARK_AS_ADVANCED(CAS_VERSION_FILE) # Is this a development version: @@ -89,64 +90,64 @@ IF(NOT WIN32) ENDIF() ENDIF() -FIND_LIBRARY(CAS_FWOSPlugin FWOSPlugin ) +FIND_LIBRARY(CAS_FWOSPlugin NAMES FWOSPlugin HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES lib) MESSAGE(STATUS "FWOS " ${CAS_FWOSPlugin}) -FIND_LIBRARY(CAS_PTKernel PTKernel ) -FIND_LIBRARY(CAS_TKBin TKBin ) -FIND_LIBRARY(CAS_TKBinL TKBinL ) -FIND_LIBRARY(CAS_TKBinTObj TKBinTObj ) -FIND_LIBRARY(CAS_TKBinXCAF TKBinXCAF ) -FIND_LIBRARY(CAS_TKBO TKBO ) -FIND_LIBRARY(CAS_TKBool TKBool ) -FIND_LIBRARY(CAS_TKBRep TKBRep ) -FIND_LIBRARY(CAS_TKCAF TKCAF ) -FIND_LIBRARY(CAS_TKCDF TKCDF ) -FIND_LIBRARY(CAS_TKernel TKernel ) -FIND_LIBRARY(CAS_TKFeat TKFeat ) -FIND_LIBRARY(CAS_TKFillet TKFillet ) -FIND_LIBRARY(CAS_TKG2d TKG2d ) -FIND_LIBRARY(CAS_TKG3d TKG3d ) -FIND_LIBRARY(CAS_TKGeomAlgo TKGeomAlgo ) -FIND_LIBRARY(CAS_TKGeomBase TKGeomBase ) -FIND_LIBRARY(CAS_TKHLR TKHLR ) -FIND_LIBRARY(CAS_TKIGES TKIGES ) -FIND_LIBRARY(CAS_TKLCAF TKLCAF ) -FIND_LIBRARY(CAS_TKMath TKMath ) -FIND_LIBRARY(CAS_TKMesh TKMesh ) -FIND_LIBRARY(CAS_TKMeshVS TKMeshVS ) -FIND_LIBRARY(CAS_TKNIS TKNIS ) -FIND_LIBRARY(CAS_TKOffset TKOffset ) -FIND_LIBRARY(CAS_TKOpenGl TKOpenGl ) -FIND_LIBRARY(CAS_TKPCAF TKPCAF ) -FIND_LIBRARY(CAS_TKPLCAF TKPLCAF ) -FIND_LIBRARY(CAS_TKPrim TKPrim ) -FIND_LIBRARY(CAS_TKPShape TKPShape ) -FIND_LIBRARY(CAS_TKService TKService ) -FIND_LIBRARY(CAS_TKShapeSchema TKShapeSchema ) -FIND_LIBRARY(CAS_TKShHealing TKShHealing ) -FIND_LIBRARY(CAS_TKStdLSchema TKStdLSchema ) -FIND_LIBRARY(CAS_TKStdSchema TKStdSchema ) -FIND_LIBRARY(CAS_TKSTEP TKSTEP ) -FIND_LIBRARY(CAS_TKSTEP209 TKSTEP209 ) -FIND_LIBRARY(CAS_TKSTEPAttr TKSTEPAttr ) -FIND_LIBRARY(CAS_TKSTEPBase TKSTEPBase ) -FIND_LIBRARY(CAS_TKSTL TKSTL ) -FIND_LIBRARY(CAS_TKTObj TKTObj ) -FIND_LIBRARY(CAS_TKTopAlgo TKTopAlgo ) -FIND_LIBRARY(CAS_TKV3d TKV3d ) -FIND_LIBRARY(CAS_TKVRML TKVRML ) -FIND_LIBRARY(CAS_TKXCAF TKXCAF ) -FIND_LIBRARY(CAS_TKXCAFSchema TKXCAFSchema ) -FIND_LIBRARY(CAS_TKXDEIGES TKXDEIGES ) -FIND_LIBRARY(CAS_TKXDESTEP TKXDESTEP ) -FIND_LIBRARY(CAS_TKXMesh TKXMesh ) -FIND_LIBRARY(CAS_TKXml TKXml ) -FIND_LIBRARY(CAS_TKXmlL TKXmlL ) -FIND_LIBRARY(CAS_TKXmlTObj TKXmlTObj ) -FIND_LIBRARY(CAS_TKXmlXCAF TKXmlXCAF ) -FIND_LIBRARY(CAS_TKXSBase TKXSBase ) +FIND_LIBRARY(CAS_PTKernel PTKernel HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES lib) +FIND_LIBRARY(CAS_TKBin TKBin HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES lib) +FIND_LIBRARY(CAS_TKBinL TKBinL HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES lib) +FIND_LIBRARY(CAS_TKBinTObj TKBinTObj HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES lib) +FIND_LIBRARY(CAS_TKBinXCAF TKBinXCAF HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES lib) +FIND_LIBRARY(CAS_TKBO TKBO HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES lib) +FIND_LIBRARY(CAS_TKBool TKBool HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES lib) +FIND_LIBRARY(CAS_TKBRep TKBRep HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES lib) +FIND_LIBRARY(CAS_TKCAF TKCAF HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES lib) +FIND_LIBRARY(CAS_TKCDF TKCDF HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES lib) +FIND_LIBRARY(CAS_TKernel TKernel HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES lib) +FIND_LIBRARY(CAS_TKFeat TKFeat HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES lib) +FIND_LIBRARY(CAS_TKFillet TKFillet HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES lib) +FIND_LIBRARY(CAS_TKG2d TKG2d HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES lib) +FIND_LIBRARY(CAS_TKG3d TKG3d HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES lib) +FIND_LIBRARY(CAS_TKGeomAlgo TKGeomAlgo HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES lib) +FIND_LIBRARY(CAS_TKGeomBase TKGeomBase HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES lib) +FIND_LIBRARY(CAS_TKHLR TKHLR HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES lib) +FIND_LIBRARY(CAS_TKIGES TKIGES HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES lib) +FIND_LIBRARY(CAS_TKLCAF TKLCAF HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES lib) +FIND_LIBRARY(CAS_TKMath TKMath HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES lib) +FIND_LIBRARY(CAS_TKMesh TKMesh HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES lib) +FIND_LIBRARY(CAS_TKMeshVS TKMeshVS HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES lib) +FIND_LIBRARY(CAS_TKNIS TKNIS HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES lib) +FIND_LIBRARY(CAS_TKOffset TKOffset HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES lib) +FIND_LIBRARY(CAS_TKOpenGl TKOpenGl HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES lib) +FIND_LIBRARY(CAS_TKPCAF TKPCAF HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES lib) +FIND_LIBRARY(CAS_TKPLCAF TKPLCAF HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES lib) +FIND_LIBRARY(CAS_TKPrim TKPrim HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES lib) +FIND_LIBRARY(CAS_TKPShape TKPShape HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES lib) +FIND_LIBRARY(CAS_TKService TKService HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES lib) +FIND_LIBRARY(CAS_TKShapeSchema TKShapeSchema HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES lib) +FIND_LIBRARY(CAS_TKShHealing TKShHealing HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES lib) +FIND_LIBRARY(CAS_TKStdLSchema TKStdLSchema HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES lib) +FIND_LIBRARY(CAS_TKStdSchema TKStdSchema HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES lib) +FIND_LIBRARY(CAS_TKSTEP TKSTEP HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES lib) +FIND_LIBRARY(CAS_TKSTEP209 TKSTEP209 HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES lib) +FIND_LIBRARY(CAS_TKSTEPAttr TKSTEPAttr HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES lib) +FIND_LIBRARY(CAS_TKSTEPBase TKSTEPBase HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES lib) +FIND_LIBRARY(CAS_TKSTL TKSTL HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES lib) +FIND_LIBRARY(CAS_TKTObj TKTObj HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES lib) +FIND_LIBRARY(CAS_TKTopAlgo TKTopAlgo HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES lib) +FIND_LIBRARY(CAS_TKV3d TKV3d HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES lib) +FIND_LIBRARY(CAS_TKVRML TKVRML HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES lib) +FIND_LIBRARY(CAS_TKXCAF TKXCAF HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES lib) +FIND_LIBRARY(CAS_TKXCAFSchema TKXCAFSchema HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES lib) +FIND_LIBRARY(CAS_TKXDEIGES TKXDEIGES HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES lib) +FIND_LIBRARY(CAS_TKXDESTEP TKXDESTEP HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES lib) +FIND_LIBRARY(CAS_TKXMesh TKXMesh HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES lib) +FIND_LIBRARY(CAS_TKXml TKXml HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES lib) +FIND_LIBRARY(CAS_TKXmlL TKXmlL HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES lib) +FIND_LIBRARY(CAS_TKXmlTObj TKXmlTObj HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES lib) +FIND_LIBRARY(CAS_TKXmlXCAF TKXmlXCAF HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES lib) +FIND_LIBRARY(CAS_TKXSBase TKXSBase HINTS ENV CAS_ROOT_DIR PATH_SUFFIXES lib) SET(CAS_KERNEL ${CAS_TKernel} ${CAS_TKMath}) SET(CAS_OCAF ${CAS_TKernel} ${CAS_TKMath} ${CAS_TKCDF} ${CAS_TKLCAF}) -- 2.39.2