]> SALOME platform Git repositories - modules/shaper.git/blob - CMakeCommon/FindTInspector.cmake
Salome HOME
Issue #2543: Provide completion on editing.
[modules/shaper.git] / CMakeCommon / FindTInspector.cmake
1 # - Try to  find TInspector
2 # Once done this will define
3 #
4 #  TInspector - system has OCCT tool inspector
5 #  TINSPECTOR_INCLUDE_DIRS - the tool inspector include directory
6 #  TINSPECTOR_LIBRARIES - Link these to use TInspector
7
8 #=============================================================================
9 ## Copyright (C) 2014-20xx CEA/DEN, EDF R&D
10 #=============================================================================
11
12 SET(TINSPECTOR_ROOT_DIR $ENV{TINSPECTOR_ROOT_DIR} CACHE PATH "Path to the TInspector directory")
13 IF(EXISTS ${TINSPECTOR_ROOT_DIR})
14   SET(TINSPECTOR_INCLUDE_DIR "${TINSPECTOR_ROOT_DIR}/inc")
15   SET(TINSPECTOR_LIB_DIR "${TINSPECTOR_ROOT_DIR}/lib")
16
17   FIND_LIBRARY(TKTInspector TKTInspector "${TINSPECTOR_LIB_DIR}")
18   IF(TKTInspector)
19     SET(TKTInspector ${TKTInspector})
20     MESSAGE(STATUS "TInspector is found at ${TINSPECTOR_ROOT_DIR}")
21     MESSAGE(STATUS "TInspector include dir is ${TINSPECTOR_INCLUDE_DIR}")
22     MESSAGE(STATUS "TInspector lib dir is ${TINSPECTOR_LIB_DIR}")
23
24     FIND_LIBRARY(TKVInspector TKVInspector "${TINSPECTOR_LIB_DIR}")
25     SET(TKVInspector ${TKVInspector})
26
27     FIND_LIBRARY(TKTInspectorAPI TKTInspectorAPI "${TINSPECTOR_LIB_DIR}")
28     SET(TKTInspectorAPI ${TKTInspectorAPI})
29
30     FIND_LIBRARY(TKTreeModel TKTreeModel "${TINSPECTOR_LIB_DIR}")
31     SET(TKTreeModel ${TKTreeModel})
32
33     FIND_LIBRARY(TKVInspector TKVInspector "${TINSPECTOR_LIB_DIR}")
34     SET(TKVInspector ${TKVInspector})
35
36   ENDIF(TKTInspector)
37
38 ENDIF(EXISTS ${TINSPECTOR_ROOT_DIR})