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: 5FindosgAnimation 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 osgAnimation This module defines 22 23OSGANIMATION_FOUND - Was osgAnimation found? OSGANIMATION_INCLUDE_DIR 24- Where to find the headers OSGANIMATION_LIBRARIES - The libraries to 25link against for the OSG (use this) 26 27OSGANIMATION_LIBRARY - The OSG library OSGANIMATION_LIBRARY_DEBUG - 28The OSG debug library 29 30$OSGDIR is an environment variable that would correspond to the 31./configure --prefix=$OSGDIR used in building osg. 32 33Created by Eric Wing. 34#]=======================================================================] 35 36# Header files are presumed to be included like 37# #include <osg/PositionAttitudeTransform> 38# #include <osgAnimation/Animation> 39 40include(${CMAKE_CURRENT_LIST_DIR}/Findosg_functions.cmake) 41OSG_FIND_PATH (OSGANIMATION osgAnimation/Animation) 42OSG_FIND_LIBRARY(OSGANIMATION osgAnimation) 43 44include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake) 45FIND_PACKAGE_HANDLE_STANDARD_ARGS(osgAnimation DEFAULT_MSG 46 OSGANIMATION_LIBRARY OSGANIMATION_INCLUDE_DIR) 47