Fixed some transforms, move to 3d and quaternion math in progress...
[ne.git] / CMakeModules / FindODE.cmake
blob0b9f30a5fd32715191252c1ec2171fcdf5f52687
1 # Locate ode
2 # This module defines
3 # ODE_LIBRARY
4 # ODE_FOUND, if false, do not try to link to ode 
5 # ODE_INCLUDE_DIR, where to find the headers
7 # $ODE_DIR is an environment variable that would
8 # correspond to the ./configure --prefix=$ODE_DIR
10 # Created by David Guthrie.  Based on code by Robert Osfield 
11 # Modified by Matt Thompson
13 FIND_PATH(ODE_INCLUDE_DIR ode/ode.h
14     ${ODE_DIR}/include
15     $ENV{ODE_DIR}/include
16     $ENV{ODE_DIR}
17     ~/Library/Frameworks
18     /Library/Frameworks
19     /usr/local/include
20     /usr/include
21     /usr/include/cal3d
22     /sw/include # Fink
23     /opt/local/include # DarwinPorts
24     /opt/csw/include # Blastwave
25     /opt/include
26     [HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OSG_ROOT]/include
27     /usr/freeware/include
30 FIND_PATH(ODE_VERSION_LT_0_10 ode/config.h
31     ${ODE_INCLUDE_DIR}
34 MACRO(FIND_ODE_LIBRARY MYLIBRARY MYLIBRARYNAME)
36 FIND_LIBRARY(${MYLIBRARY}
37     NAMES ${MYLIBRARYNAME}
38     PATHS
39     ${ODE_DIR}/lib
40     $ENV{ODE_DIR}/lib
41     $ENV{ODE_DIR}
42     ~/Library/Frameworks
43     /Library/Frameworks
44     /usr/local/lib
45     /usr/lib
46     /sw/lib
47     /opt/local/lib
48     /opt/csw/lib
49     /opt/lib
50     [HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OSG_ROOT]/lib
51     /usr/freeware/lib64
54 ENDMACRO(FIND_ODE_LIBRARY MYLIBRARY MYLIBRARYNAME)
56 FIND_ODE_LIBRARY(ODE_LIBRARY ode)
57 FIND_ODE_LIBRARY(ODE_LIBRARY_DEBUG oded)
59 SET(ODE_FOUND "NO")
60 IF(ODE_LIBRARY AND ODE_INCLUDE_DIR)
61     SET(ODE_FOUND "YES")
62 ENDIF(ODE_LIBRARY AND ODE_INCLUDE_DIR)