Merge topic 'cxx-checks-tolerate-unused-arguments'
[kiteware-cmake.git] / Modules / FindosgProducer.cmake
blob92f0d20f349699b3dea83f1ef4a1a24dda6c042c
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 FindosgProducer
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 osgProducer This module defines:
23 ``OSGPRODUCER_FOUND``
24   Was osgProducer found?
25 ``OSGPRODUCER_INCLUDE_DIR``
26   Where to find the headers
27 ``OSGPRODUCER_LIBRARIES``
28   The libraries to link for osgProducer (use this)
29 ``OSGPRODUCER_LIBRARY``
30   The osgProducer library
31 ``OSGPRODUCER_LIBRARY_DEBUG``
32   The osgProducer debug library
34 ``$OSGDIR`` is an environment variable that would correspond to::
36   ./configure --prefix=$OSGDIR
38 used in building osg.
40 Created by Eric Wing.
41 #]=======================================================================]
43 # Header files are presumed to be included like
44 # #include <osg/PositionAttitudeTransform>
45 # #include <osgProducer/OsgSceneHandler>
47 include(${CMAKE_CURRENT_LIST_DIR}/Findosg_functions.cmake)
48 OSG_FIND_PATH   (OSGPRODUCER osgProducer/OsgSceneHandler)
49 OSG_FIND_LIBRARY(OSGPRODUCER osgProducer)
51 include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
52 FIND_PACKAGE_HANDLE_STANDARD_ARGS(osgProducer DEFAULT_MSG
53     OSGPRODUCER_LIBRARY OSGPRODUCER_INCLUDE_DIR)