2 # Copyright 2007 Antoine Chavasse <a.chavasse@gmail.com>
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/>.
20 # Once done, it will set ODE_FOUND to true, ODE_LIBRARY and ODE_INCLUDE_DIR.
24 find_path( ODE_INCLUDE_DIR
33 find_library( ODE_LIBRARY
43 if( ODE_INCLUDE_DIR AND ODE_LIBRARY )
44 set( ODE_FOUND "YES" )
45 endif( ODE_INCLUDE_DIR AND ODE_LIBRARY )
48 if( NOT ODE_FIND_QUIETLY )
49 message( STATUS "Found ODE: ${ODE_LIBRARY}" )
50 endif( NOT ODE_FIND_QUIETLY )
52 if( ODE_FIND_REQUIRED )
53 message( FATAL_ERROR "Could not find ODE" )
54 endif( ODE_FIND_REQUIRED )