1 # - Find Coin3D (Open Inventor)
2 # Coin3D is an implementation of the Open Inventor API.
3 # It provides data structures and algorithms for 3D visualization
4 # http://www.coin3d.org/
6 # This module defines the following variables
7 # COIN3D_FOUND - system has Coin3D - Open Inventor
8 # COIN3D_INCLUDE_DIRS - where the Inventor include directory can be found
9 # COIN3D_LIBRARIES - Link to this to use Coin3D
16 FIND_PATH(COIN3D_INCLUDE_DIRS Inventor/So.h)
17 FIND_LIBRARY(COIN3D_LIBRARIES Coin)
21 FIND_PATH(COIN3D_INCLUDE_DIRS Inventor/So.h
22 "[HKEY_LOCAL_MACHINE\\SOFTWARE\\SIM\\Coin3D\\2;Installation Path]/include"
25 FIND_LIBRARY(COIN3D_LIBRARY_DEBUG coin2d
26 "[HKEY_LOCAL_MACHINE\\SOFTWARE\\SIM\\Coin3D\\2;Installation Path]/lib"
29 FIND_LIBRARY(COIN3D_LIBRARY_RELEASE coin2
30 "[HKEY_LOCAL_MACHINE\\SOFTWARE\\SIM\\Coin3D\\2;Installation Path]/lib"
33 IF (COIN3D_LIBRARY_DEBUG AND COIN3D_LIBRARY_RELEASE)
34 SET(COIN3D_LIBRARIES optimized ${COIN3D_LIBRARY_RELEASE}
35 debug ${COIN3D_LIBRARY_DEBUG})
36 ELSE (COIN3D_LIBRARY_DEBUG AND COIN3D_LIBRARY_RELEASE)
37 IF (COIN3D_LIBRARY_DEBUG)
38 SET (COIN3D_LIBRARIES ${COIN3D_LIBRARY_DEBUG})
39 ENDIF (COIN3D_LIBRARY_DEBUG)
40 IF (COIN3D_LIBRARY_RELEASE)
41 SET (COIN3D_LIBRARIES ${COIN3D_LIBRARY_RELEASE})
42 ENDIF (COIN3D_LIBRARY_RELEASE)
43 ENDIF (COIN3D_LIBRARY_DEBUG AND COIN3D_LIBRARY_RELEASE)
49 FIND_PATH(COIN3D_INCLUDE_DIRS Inventor/So.h
50 /Library/Frameworks/Inventor.framework/Headers
52 FIND_LIBRARY(COIN3D_LIBRARIES Coin
53 /Library/Frameworks/Inventor.framework/Libraries
55 SET(COIN3D_LIBRARIES "-framework Coin3d" CACHE STRING "Coin3D library for OSX")
58 FIND_PATH(COIN3D_INCLUDE_DIRS Inventor/So.h)
59 FIND_LIBRARY(COIN3D_LIBRARIES Coin)
65 # handle the QUIETLY and REQUIRED arguments and set COIN3D_FOUND to TRUE if
66 # all listed variables are TRUE
67 INCLUDE(FindPackageHandleStandardArgs)
68 FIND_PACKAGE_HANDLE_STANDARD_ARGS(Coin3D DEFAULT_MSG COIN3D_LIBRARIES COIN3D_INCLUDE_DIRS)
70 MARK_AS_ADVANCED(COIN3D_INCLUDE_DIRS COIN3D_LIBRARIES )