]> SALOME platform Git repositories - modules/gui.git/blob - adm_local/cmake_files/FindSalomeCAS.cmake
Salome HOME
fix problem of polyline selection
[modules/gui.git] / adm_local / cmake_files / FindSalomeCAS.cmake
1 # Copyright (C) 2013  CEA/DEN, EDF R&D, OPEN CASCADE
2 #
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.
7 #
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.
12 #
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
16 #
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19
20 # OpenCascade detection for Salome
21
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)
26   if(WINDOWS)
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)
32   else(WINDOWS)
33     set(CMAKE_LIBRARY_PATH ${CAS_ROOT_DIR}/lib)
34   endif(WINDOWS)
35 endif(EXISTS ${CAS_ROOT_DIR})
36 find_package(CAS)
37
38 IF(CAS_StdLPlugin)
39   SET(CAS_STDPLUGIN StdPlugin)
40 ELSE(CAS_StdLPlugin)
41   IF(CAS_TKStdSchema)
42     SET(CAS_STDPLUGIN TKStdSchema)
43   ENDIF(CAS_TKStdSchema)
44 ENDIF(CAS_StdLPlugin)