Last change
on this file since 1075 was
790,
checked in by nicolasc, 17 years ago
|
merged FICN back into trunk
awaiting release.
|
File size:
1.3 KB
|
Line | |
---|
1 | # find ODE (Open Dynamics Engine) includes and library |
---|
2 | # |
---|
3 | # ODE_INCLUDE_DIR - where the directory containing the ODE headers can be |
---|
4 | # found |
---|
5 | # ODE_LIBRARY - full path to the ODE library |
---|
6 | # ODE_FOUND - TRUE if ODE was found |
---|
7 | |
---|
8 | IF (NOT ODE_FOUND) |
---|
9 | |
---|
10 | FIND_PATH(ODE_INCLUDE_DIR ode/ode.h |
---|
11 | /usr/include |
---|
12 | /usr/local/include |
---|
13 | $ENV{OGRE_HOME}/include # OGRE SDK on WIN32 |
---|
14 | $ENV{INCLUDE} |
---|
15 | ) |
---|
16 | FIND_LIBRARY(ODE_LIBRARY |
---|
17 | NAMES ode |
---|
18 | PATHS |
---|
19 | /usr/lib |
---|
20 | /usr/local/lib |
---|
21 | $ENV{OGRE_HOME}/lib # OGRE SDK on WIN32 |
---|
22 | ) |
---|
23 | |
---|
24 | IF(ODE_INCLUDE_DIR) |
---|
25 | MESSAGE(STATUS "Found ODE include dir: ${ODE_INCLUDE_DIR}") |
---|
26 | ELSE(ODE_INCLUDE_DIR) |
---|
27 | MESSAGE(STATUS "Could NOT find ODE headers.") |
---|
28 | ENDIF(ODE_INCLUDE_DIR) |
---|
29 | |
---|
30 | IF(ODE_LIBRARY) |
---|
31 | MESSAGE(STATUS "Found ODE library: ${ODE_LIBRARY}") |
---|
32 | ELSE(ODE_LIBRARY) |
---|
33 | MESSAGE(STATUS "Could NOT find ODE library.") |
---|
34 | ENDIF(ODE_LIBRARY) |
---|
35 | |
---|
36 | IF(ODE_INCLUDE_DIR AND ODE_LIBRARY) |
---|
37 | SET(ODE_FOUND TRUE CACHE STRING "Whether ODE was found or not") |
---|
38 | ELSE(ODE_INCLUDE_DIR AND ODE_LIBRARY) |
---|
39 | SET(ODE_FOUND FALSE) |
---|
40 | IF(ODE_FIND_REQUIRED) |
---|
41 | MESSAGE(FATAL_ERROR "Could not find ODE. Please install ODE (http://www.ode.org)") |
---|
42 | ENDIF(ODE_FIND_REQUIRED) |
---|
43 | ENDIF(ODE_INCLUDE_DIR AND ODE_LIBRARY) |
---|
44 | ENDIF (NOT ODE_FOUND) |
---|
45 | |
---|
46 | # vim: et sw=4 ts=4 |
---|
Note: See
TracBrowser
for help on using the repository browser.