7
# This is part of the Findosg* suite used to find OpenSceneGraph
8
# components. Each component is separate and you must opt in to each
9
# module. You must also opt into OpenGL and OpenThreads (and Producer
10
# if needed) as these modules won't do it for you. This is to allow you
11
# control over your own system piece by piece in case you need to opt
12
# out of certain components or change the Find behavior for a particular
13
# module (perhaps because the default FindOpenGL.cmake module doesn't
14
# work with your system as an example). If you want to use a more
15
# convenient module that includes everything, use the
16
# FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.
18
# Locate osgGA This module defines
20
# OSGGA_FOUND - Was osgGA found? OSGGA_INCLUDE_DIR - Where to find the
21
# headers OSGGA_LIBRARIES - The libraries to link against for the osgGA
24
# OSGGA_LIBRARY - The osgGA library OSGGA_LIBRARY_DEBUG - The osgGA
27
# $OSGDIR is an environment variable that would correspond to the
28
# ./configure --prefix=$OSGDIR used in building osg.
30
# Created by Eric Wing.
32
#=============================================================================
33
# Copyright 2007-2009 Kitware, Inc.
35
# Distributed under the OSI-approved BSD License (the "License");
36
# see accompanying file Copyright.txt for details.
38
# This software is distributed WITHOUT ANY WARRANTY; without even the
39
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
40
# See the License for more information.
41
#=============================================================================
42
# (To distribute this file outside of CMake, substitute the full
43
# License text for the above reference.)
45
# Header files are presumed to be included like
46
# #include <osg/PositionAttitudeTransform>
47
# #include <osgGA/FlightManipulator>
49
include(${CMAKE_CURRENT_LIST_DIR}/Findosg_functions.cmake)
50
OSG_FIND_PATH (OSGGA osgGA/FlightManipulator)
51
OSG_FIND_LIBRARY(OSGGA osgGA)
53
include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
54
FIND_PACKAGE_HANDLE_STANDARD_ARGS(osgGA DEFAULT_MSG
55
OSGGA_LIBRARY OSGGA_INCLUDE_DIR)