]> SALOME platform Git repositories - modules/shaper.git/blob - CMakeCommon/FindSUIT.cmake
Salome HOME
Issue #2561: CEA 2018-1 Cut
[modules/shaper.git] / CMakeCommon / FindSUIT.cmake
1 ## Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3
4 IF(HAVE_SALOME)
5   SET(SUIT_INCLUDE ${SALOME_GUI_INCLUDE})
6   MESSAGE(STATUS "SUIT_INCLUDE: ${SALOME_GUI_INCLUDE}")
7   SET(SUIT_LIB_DIR "${GUI_ROOT_DIR}/lib/salome")
8 ELSE(HAVE_SALOME) 
9   SET(SUIT_DIR $ENV{SUIT_DIR})
10   IF(EXISTS ${SUIT_DIR})
11
12     MESSAGE(STATUS "SUIT found at ${SUIT_DIR}")
13     IF(WIN32)
14         SET(SUIT_LIB_DIR ${SUIT_DIR}/lib)
15     ElSE()
16         SET(SUIT_LIB_DIR ${SUIT_DIR}/lib/salome)
17     ENDIF()
18
19     FIND_LIBRARY(Event Event ${SUIT_LIB_DIR})
20     FIND_LIBRARY(PyConsole PyConsole ${SUIT_LIB_DIR})
21     FIND_LIBRARY(PyInterp PyInterp ${SUIT_LIB_DIR})
22     FIND_LIBRARY(qtx qtx ${SUIT_LIB_DIR})
23     FIND_LIBRARY(suit suit ${SUIT_LIB_DIR})
24     FIND_LIBRARY(ViewerData ViewerData ${SUIT_LIB_DIR})
25
26     IF(WIN32)
27         SET(SUIT_INCLUDE ${SUIT_DIR}/include)
28     ElSE()
29         SET(SUIT_INCLUDE ${SUIT_DIR}/include/salome)
30     ENDIF()
31   ENDIF(EXISTS ${SUIT_DIR})
32 ENDIF(HAVE_SALOME)