~ubuntu-branches/ubuntu/trusty/cmake3/trusty-updates

« back to all changes in this revision

Viewing changes to Modules/FindosgGA.cmake

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2017-02-23 17:55:24 UTC
  • Revision ID: package-import@ubuntu.com-20170223175524-5nh7s4pu97fsa0t7
Tags: upstream-3.5.1
ImportĀ upstreamĀ versionĀ 3.5.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#.rst:
 
2
# FindosgGA
 
3
# ---------
 
4
#
 
5
#
 
6
#
 
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.
 
17
#
 
18
# Locate osgGA This module defines
 
19
#
 
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
 
22
# (use this)
 
23
#
 
24
# OSGGA_LIBRARY - The osgGA library OSGGA_LIBRARY_DEBUG - The osgGA
 
25
# debug library
 
26
#
 
27
# $OSGDIR is an environment variable that would correspond to the
 
28
# ./configure --prefix=$OSGDIR used in building osg.
 
29
#
 
30
# Created by Eric Wing.
 
31
 
 
32
#=============================================================================
 
33
# Copyright 2007-2009 Kitware, Inc.
 
34
#
 
35
# Distributed under the OSI-approved BSD License (the "License");
 
36
# see accompanying file Copyright.txt for details.
 
37
#
 
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.)
 
44
 
 
45
# Header files are presumed to be included like
 
46
# #include <osg/PositionAttitudeTransform>
 
47
# #include <osgGA/FlightManipulator>
 
48
 
 
49
include(${CMAKE_CURRENT_LIST_DIR}/Findosg_functions.cmake)
 
50
OSG_FIND_PATH   (OSGGA osgGA/FlightManipulator)
 
51
OSG_FIND_LIBRARY(OSGGA osgGA)
 
52
 
 
53
include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
 
54
FIND_PACKAGE_HANDLE_STANDARD_ARGS(osgGA DEFAULT_MSG
 
55
    OSGGA_LIBRARY OSGGA_INCLUDE_DIR)