0029684: Configuration: modification of build Inspector tool standalone on occt
[occt.git] / samples / tools / TStandalone / adm / cmake / occt.cmake
1 #freeimage
2
3 if(NOT "${CASROOT}" STREQUAL "")
4   #message(FATAL_ERROR, "Empty OCCT dir")
5   #return()
6   #set("3RDPARTY_OCCT_DIR ${CASROOT}")
7 endif()
8
9 #set(3RDPARTY_OCC_DIR ${CASROOT})
10 #message("3RDPARTY_OCC_DIR: ${3RDPARTY_OCC_DIR}")
11 #set("3RDPARTY_OCC_DIR ${3RDPARTY_OCCT_DIR}")
12 #message("3RDPARTY_OCC_DIR: ${3RDPARTY_OCC_DIR}")
13
14 set(CSF_TKernel "TKernel")
15 THIRDPARTY_PRODUCT("OCCT" "Standard.hxx" "CSF_TKernel" "")
16
17 set(3RDPARTY_OCCT_DIR ${3RDPARTY_OCC_DIR} CACHE PATH "OCCT dir")
18
19 OCCT_MAKE_OS_WITH_BITNESS()
20 OCCT_MAKE_COMPILER_SHORT_NAME()
21
22 SET(3RDPARTY_OCCT_INCLUDE_DIR "${3RDPARTY_OCC_INCLUDE_DIR}" CACHE PATH "OCCT include dir")
23 SET(3RDPARTY_OCCT_LIBRARY_DIR "${3RDPARTY_OCC_LIBRARY_DIR}" CACHE PATH "OCCT library dir")
24 SET(3RDPARTY_OCCT_DLL_DIR "${3RDPARTY_OCC_DLL_DIR}" CACHE PATH "OCCT dll dir")
25
26 SET(CSF_StandardDefaults_DIR ${CASROOT}/src/StdResource CACHE PATH "OCCT Standard Resource")
27 SET(CSF_XCAFDefaults_DIR ${CASROOT}/src/StdResource CACHE PATH "OCCT XCAF Defaults")
28 SET(CSF_PluginDefaults_DIR ${CASROOT}/src/StdResource CACHE PATH "OCCT Plugin Defaults")
29
30 message (STATUS "... OCCT dir: ${3RDPARTY_OCCT_DIR}")
31 message (STATUS "... OCCT Include dirs: ${3RDPARTY_OCCT_INCLUDE_DIR}")
32 message (STATUS "... OCCT Library dirs: ${3RDPARTY_OCCT_LIBRARY_DIRS}")
33 message (STATUS "... OCCT Binary  dirs: ${3RDPARTY_OCCT_DLL_DIRS}")
34
35 SET(CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH} "${3RDPARTY_OCCT_LIBRARY_DIRS}")
36
37 find_library(TKernel TKernel PATHS "${3RDPARTY_OCCT_LIBRARY_DIRS}"
38                              PATH_SUFFIXES lib
39                              NO_DEFAULT_PATH)
40
41 if ("${TKernel}" STREQUAL "TKernel-NOTFOUND")
42   set (OCCT_LIBRARY_NOT_FOUND ON)
43 endif()
44
45 find_library(TKMath TKMath)
46
47 find_library(TKCAF TKCAF)
48 find_library(TKCDF TKCDF)
49 find_library(TKLCAF TKLCAF)
50 find_library(TKVCAF TKVCAF)
51
52 find_library(TKBRep TKBRep)
53 find_library(TKService TKService)
54
55 find_library(TKOpenGl TKOpenGl)
56 find_library(TKV3d TKV3d)
57
58 find_library(TKXCAF TKXCAF)
59 find_library(TKXSBase TKXSBase)
60 find_library(TKXDESTEP TKXDESTEP)
61 find_library(TKXmlXCAF TKXmlXCAF)
62 find_library(TKXml TKXml)
63
64 find_library(TKBin TKBin)
65 find_library(TKBinL TKBinL)
66 find_library(TKBinXCAF TKBinXCAF)
67
68 find_library(TKStd TKStd)
69 find_library(TKXmlL TKXmlL)
70 find_library(TKStdL TKStdL)
71 # VInspector additionally:
72 find_library(TKBO TKBO)
73 # ShapeView additionally:
74 find_library(TKGeomBase TKGeomBase)
75 find_library(TKG3d TKG3d)