# - Find OCCT Parasolid XDE product # Sets the following variables: # XT_INCLUDE_DIRS - path to the XT include directory # XT_LIBRARIES - path to the XT libraries to be linked against # ######################################################################### # Copyright (C) 2014-2015 OPEN CASCADE # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # # ------ MESSAGE(STATUS "Check for OCCT Parasolid XDE product ...") # ------ SET(XT_ROOT_DIR $ENV{XT_ROOT_DIR}) SET(OCCLICENSE_ROOT_DIR $ENV{OCCLICENSE_ROOT_DIR}) IF(XT_ROOT_DIR) LIST(APPEND CMAKE_PREFIX_PATH "${XT_ROOT_DIR}") ENDIF(XT_ROOT_DIR) IF(OCCLICENSE_ROOT_DIR) LIST(APPEND CMAKE_PREFIX_PATH "${OCCLICENSE_ROOT_DIR}") ENDIF(OCCLICENSE_ROOT_DIR) FIND_PATH(XT_INCLUDE_DIRS XtData.hxx PATH_SUFFIXES inc) FIND_PATH(OCCTLICENSE_INCLUDE_DIRS OCCLicense_Activate.hxx PATH_SUFFIXES inc) IF(OCCTLICENSE_INCLUDE_DIRS) LIST(APPEND XT_INCLUDE_DIRS ${OCCTLICENSE_INCLUDE_DIRS}) ENDIF(OCCTLICENSE_INCLUDE_DIRS) FIND_LIBRARY(XT_TKXDEXT NAMES TKXDEXT) FIND_LIBRARY(XT_TKXT NAMES TKXT) FIND_LIBRARY(XT_TKOCCLicense NAMES TKOCCLicense) SET(XT_LIBRARIES ${XT_TKXT} ${XT_TKXDEXT} ${XT_TKOCCLicense} ) INCLUDE(FindPackageHandleStandardArgs) FIND_PACKAGE_HANDLE_STANDARD_ARGS(XT REQUIRED_VARS XT_INCLUDE_DIRS XT_LIBRARIES)