1 # Copyright (C) 2013 CEA/DEN, EDF R&D, OPEN CASCADE
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License.
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 # Lesser General Public License for more details.
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 # OpenCascade detection for Salome
22 set(CAS_ROOT_DIR $ENV{CAS_ROOT_DIR} CACHE PATH "Path to OpenCascade directory")
23 if(EXISTS ${CAS_ROOT_DIR})
24 set(CMAKE_INCLUDE_PATH ${CAS_ROOT_DIR}/inc)
25 set(CMAKE_PROGRAM_PATH ${CAS_ROOT_DIR}/bin)
27 if(CMAKE_BUILD_TYPE STREQUAL Debug)
28 set(CMAKE_LIBRARY_PATH ${CAS_ROOT}/win32/libd)
29 else(CMAKE_BUILD_TYPE STREQUAL Debug)
30 set(CMAKE_LIBRARY_DIR ${CAS_ROOT}/win32/lib)
31 endif(CMAKE_BUILD_TYPE STREQUAL Debug)
33 set(CMAKE_LIBRARY_PATH ${CAS_ROOT_DIR}/lib)
35 endif(EXISTS ${CAS_ROOT_DIR})
39 SET(CAS_STDPLUGIN StdPlugin)
42 SET(CAS_STDPLUGIN TKStdSchema)
43 ENDIF(CAS_TKStdSchema)