1# Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
2# file Copyright.txt or https://cmake.org/licensing for details.
3
4#[=======================================================================[.rst:
5FindosgPresentation
6-------------------
7
8
9
10This is part of the Findosg* suite used to find OpenSceneGraph
11components.  Each component is separate and you must opt in to each
12module.  You must also opt into OpenGL and OpenThreads (and Producer
13if needed) as these modules won't do it for you.  This is to allow you
14control over your own system piece by piece in case you need to opt
15out of certain components or change the Find behavior for a particular
16module (perhaps because the default FindOpenGL.cmake module doesn't
17work with your system as an example).  If you want to use a more
18convenient module that includes everything, use the
19FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.
20
21Locate osgPresentation This module defines
22
23OSGPRESENTATION_FOUND - Was osgPresentation found?
24OSGPRESENTATION_INCLUDE_DIR - Where to find the headers
25OSGPRESENTATION_LIBRARIES - The libraries to link for osgPresentation
26(use this)
27
28OSGPRESENTATION_LIBRARY - The osgPresentation library
29OSGPRESENTATION_LIBRARY_DEBUG - The osgPresentation debug library
30
31$OSGDIR is an environment variable that would correspond to the
32./configure --prefix=$OSGDIR used in building osg.
33
34Created by Eric Wing.  Modified to work with osgPresentation by Robert
35Osfield, January 2012.
36#]=======================================================================]
37
38# Header files are presumed to be included like
39# #include <osg/PositionAttitudeTransform>
40# #include <osgPresentation/SlideEventHandler>
41
42include(${CMAKE_CURRENT_LIST_DIR}/Findosg_functions.cmake)
43OSG_FIND_PATH   (OSGPRESENTATION osgPresentation/SlideEventHandler)
44OSG_FIND_LIBRARY(OSGPRESENTATION osgPresentation)
45
46include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
47FIND_PACKAGE_HANDLE_STANDARD_ARGS(osgPresentation DEFAULT_MSG
48    OSGPRESENTATION_LIBRARY OSGPRESENTATION_INCLUDE_DIR)
49