io: implemented MemoryOutputStream.
[fail.git] / FindODE.cmake
bloba2dcf85363f2eb0f12cce92eb68590307cc4e889
2 #   Copyright 2007 Antoine Chavasse <a.chavasse@gmail.com>
3
4 #   This file is part of Fail.
6 #   Fail is free software; you can redistribute it and/or modify
7 #   it under the terms of the GNU General Public License version 3
8 #   as published by the Free Software Foundation.
10 #   Fail is distributed in the hope that it will be useful,
11 #   but WITHOUT ANY WARRANTY; without even the implied warranty of
12 #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 #   GNU General Public License for more details.
15 #   You should have received a copy of the GNU General Public License
16 #   along with this program.  If not, see <http://www.gnu.org/licenses/>.
19 # Look for ODE.
20 # Once done, it will set ODE_FOUND to true, ODE_LIBRARY and ODE_INCLUDE_DIR.
22 set( ODE_FOUND "NO" )
24 find_path( ODE_INCLUDE_DIR
25         ode/ode.h
27         /usr/include
28         /usr/local/include
29         /opt/local/include
30         /sw/include
33 find_library( ODE_LIBRARY
35         ode
36         
37         /usr/lib
38         /usr/local/lib
39         /opt/local/lib
40         /sw/lib
43 if( ODE_INCLUDE_DIR AND ODE_LIBRARY )
44         set( ODE_FOUND "YES" )
45 endif( ODE_INCLUDE_DIR AND ODE_LIBRARY )
47 if( ODE_FOUND )
48         if( NOT ODE_FIND_QUIETLY )
49                 message( STATUS "Found ODE: ${ODE_LIBRARY}" )
50         endif( NOT ODE_FIND_QUIETLY )
51 else( ODE_FOUND )
52         if( ODE_FIND_REQUIRED )
53                 message( FATAL_ERROR "Could not find ODE" )
54         endif( ODE_FIND_REQUIRED )
55 endif( ODE_FOUND )