FindosgPresentation.cmake 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #.rst:
  2. # FindosgPresentation
  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 osgPresentation This module defines
  19. #
  20. # OSGPRESENTATION_FOUND - Was osgPresentation found?
  21. # OSGPRESENTATION_INCLUDE_DIR - Where to find the headers
  22. # OSGPRESENTATION_LIBRARIES - The libraries to link for osgPresentation
  23. # (use this)
  24. #
  25. # OSGPRESENTATION_LIBRARY - The osgPresentation library
  26. # OSGPRESENTATION_LIBRARY_DEBUG - The osgPresentation debug library
  27. #
  28. # $OSGDIR is an environment variable that would correspond to the
  29. # ./configure --prefix=$OSGDIR used in building osg.
  30. #
  31. # Created by Eric Wing. Modified to work with osgPresentation by Robert
  32. # Osfield, January 2012.
  33. #=============================================================================
  34. # Copyright 2007-2009 Kitware, Inc.
  35. #
  36. # Distributed under the OSI-approved BSD License (the "License");
  37. # see accompanying file Copyright.txt for details.
  38. #
  39. # This software is distributed WITHOUT ANY WARRANTY; without even the
  40. # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  41. # See the License for more information.
  42. #=============================================================================
  43. # (To distribute this file outside of CMake, substitute the full
  44. # License text for the above reference.)
  45. # Header files are presumed to be included like
  46. # #include <osg/PositionAttitudeTransform>
  47. # #include <osgPresentation/SlideEventHandler>
  48. include(${CMAKE_CURRENT_LIST_DIR}/Findosg_functions.cmake)
  49. OSG_FIND_PATH (OSGPRESENTATION osgPresentation/SlideEventHandler)
  50. OSG_FIND_LIBRARY(OSGPRESENTATION osgPresentation)
  51. include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
  52. FIND_PACKAGE_HANDLE_STANDARD_ARGS(osgPresentation DEFAULT_MSG
  53. OSGPRESENTATION_LIBRARY OSGPRESENTATION_INCLUDE_DIR)