FindosgPresentation.cmake 2.0 KB

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