1 # - Try to find TInspector
2 # Once done this will define
4 # TInspector - system has OCCT tool inspector
5 # TINSPECTOR_INCLUDE_DIRS - the tool inspector include directory
6 # TINSPECTOR_LIBRARIES - Link these to use TInspector
8 #=============================================================================
9 ## Copyright (C) 2014-20xx CEA/DEN, EDF R&D
10 #=============================================================================
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")
17 FIND_LIBRARY(TKTInspector TKTInspector "${TINSPECTOR_LIB_DIR}")
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}")
24 FIND_LIBRARY(TKVInspector TKVInspector "${TINSPECTOR_LIB_DIR}")
25 SET(TKVInspector ${TKVInspector})
27 FIND_LIBRARY(TKTInspectorAPI TKTInspectorAPI "${TINSPECTOR_LIB_DIR}")
28 SET(TKTInspectorAPI ${TKTInspectorAPI})
30 FIND_LIBRARY(TKTreeModel TKTreeModel "${TINSPECTOR_LIB_DIR}")
31 SET(TKTreeModel ${TKTreeModel})
33 FIND_LIBRARY(TKVInspector TKVInspector "${TINSPECTOR_LIB_DIR}")
34 SET(TKVInspector ${TKVInspector})
38 ENDIF(EXISTS ${TINSPECTOR_ROOT_DIR})