2
# Once done this will define
4
# OCC_FOUND - system has OCC - Open Inventor
5
# OCC_INCLUDE_DIR - where the Inventor include directory can be found
6
# OCC_LIBRARY - Link this to use OCC
13
FIND_PATH(OCC_INCLUDE_DIR Inventor/So.h
18
FIND_LIBRARY(OCC_LIBRARY Coin
25
FIND_PATH(OCC_INCLUDE_DIR Inventor/So.h
26
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\SIM\\OCC\\2;Installation Path]/include"
29
FIND_LIBRARY(OCC_LIBRARY_DEBUG coin2d
30
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\SIM\\OCC\\2;Installation Path]/lib"
33
FIND_LIBRARY(OCC_LIBRARY_RELEASE coin2
34
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\SIM\\OCC\\2;Installation Path]/lib"
37
IF (OCC_LIBRARY_DEBUG AND OCC_LIBRARY_RELEASE)
38
SET(OCC_LIBRARY optimized ${OCC_LIBRARY_RELEASE}
39
debug ${OCC_LIBRARY_DEBUG})
40
ELSE (OCC_LIBRARY_DEBUG AND OCC_LIBRARY_RELEASE)
41
IF (OCC_LIBRARY_DEBUG)
42
SET (OCC_LIBRARY ${OCC_LIBRARY_DEBUG})
43
ENDIF (OCC_LIBRARY_DEBUG)
44
IF (OCC_LIBRARY_RELEASE)
45
SET (OCC_LIBRARY ${OCC_LIBRARY_RELEASE})
46
ENDIF (OCC_LIBRARY_RELEASE)
47
ENDIF (OCC_LIBRARY_DEBUG AND OCC_LIBRARY_RELEASE)
50
ADD_DEFINITIONS ( -DCOIN_NOT_DLL )
52
# SET (OCC_LIBRARY coin2d CACHE STRING "OCC Library (Debug) - Open Inventor API")
59
FIND_PATH(OCC_INCLUDE_DIR Inventor/So.h
60
/Library/Frameworks/Inventor.framework/Headers
64
FIND_LIBRARY(OCC_LIBRARY Coin
65
/Library/Frameworks/Inventor.framework/Libraries
69
SET(OCC_LIBRARY "-framework OCC" CACHE STRING "OCC library for OSX")
72
FIND_PATH(OCC_INCLUDE_DIR Standard_Version.hxx
73
/usr/include/opencascade
74
/usr/local/include/opencascade
77
FIND_LIBRARY(OCC_LIBRARY TKernel
88
SET( OCC_FOUND "YES" )