Merge topic 'cuda_add_12.8_new_sm_support'
[kiteware-cmake.git] / Modules / FindosgAnimation.cmake
blobf2c32a36b916a24783925fca473de23d26f3c4ad
1 # Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
2 # file Copyright.txt or https://cmake.org/licensing for details.
4 #[=======================================================================[.rst:
5 FindosgAnimation
6 ----------------
10 This is part of the ``Findosg*`` suite used to find OpenSceneGraph
11 components.  Each component is separate and you must opt in to each
12 module.  You must also opt into OpenGL and OpenThreads (and Producer
13 if needed) as these modules won't do it for you.  This is to allow you
14 control over your own system piece by piece in case you need to opt
15 out of certain components or change the Find behavior for a particular
16 module (perhaps because the default :module:`FindOpenGL` module doesn't
17 work with your system as an example).  If you want to use a more
18 convenient module that includes everything, use the
19 :module:`FindOpenSceneGraph` instead of the ``Findosg*.cmake`` modules.
21 Locate osgAnimation This module defines:
23 ``OSGANIMATION_FOUND``
24   Was osgAnimation found?
25 ``OSGANIMATION_INCLUDE_DIR``
26   Where to find the headers
27 ``OSGANIMATION_LIBRARIES``
28   The libraries to link against for the OSG (use this)
29 ``OSGANIMATION_LIBRARY``
30   The OSG library
31 ``OSGANIMATION_LIBRARY_DEBUG``
32   The OSG debug library
34 ``$OSGDIR`` is an environment variable that would correspond to::
36   ./configure --prefix=$OSGDIR
38 used in building osg.
39 Created by Eric Wing.
40 #]=======================================================================]
42 # Header files are presumed to be included like
43 # #include <osg/PositionAttitudeTransform>
44 # #include <osgAnimation/Animation>
46 include(${CMAKE_CURRENT_LIST_DIR}/Findosg_functions.cmake)
47 OSG_FIND_PATH   (OSGANIMATION osgAnimation/Animation)
48 OSG_FIND_LIBRARY(OSGANIMATION osgAnimation)
50 include(FindPackageHandleStandardArgs)
51 find_package_handle_standard_args(osgAnimation DEFAULT_MSG
52     OSGANIMATION_LIBRARY OSGANIMATION_INCLUDE_DIR)