FindosgManipulator.cmake 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. # FindosgManipulator
  5. # ------------------
  6. #
  7. #
  8. #
  9. # This is part of the Findosg* suite used to find OpenSceneGraph
  10. # components. Each component is separate and you must opt in to each
  11. # module. You must also opt into OpenGL and OpenThreads (and Producer
  12. # if needed) as these modules won't do it for you. This is to allow you
  13. # control over your own system piece by piece in case you need to opt
  14. # out of certain components or change the Find behavior for a particular
  15. # module (perhaps because the default FindOpenGL.cmake module doesn't
  16. # work with your system as an example). If you want to use a more
  17. # convenient module that includes everything, use the
  18. # FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.
  19. #
  20. # Locate osgManipulator This module defines
  21. #
  22. # OSGMANIPULATOR_FOUND - Was osgManipulator found?
  23. # OSGMANIPULATOR_INCLUDE_DIR - Where to find the headers
  24. # OSGMANIPULATOR_LIBRARIES - The libraries to link for osgManipulator
  25. # (use this)
  26. #
  27. # OSGMANIPULATOR_LIBRARY - The osgManipulator library
  28. # OSGMANIPULATOR_LIBRARY_DEBUG - The osgManipulator debug library
  29. #
  30. # $OSGDIR is an environment variable that would correspond to the
  31. # ./configure --prefix=$OSGDIR used in building osg.
  32. #
  33. # Created by Eric Wing.
  34. # Header files are presumed to be included like
  35. # #include <osg/PositionAttitudeTransform>
  36. # #include <osgManipulator/TrackballDragger>
  37. include(${CMAKE_CURRENT_LIST_DIR}/Findosg_functions.cmake)
  38. OSG_FIND_PATH (OSGMANIPULATOR osgManipulator/TrackballDragger)
  39. OSG_FIND_LIBRARY(OSGMANIPULATOR osgManipulator)
  40. include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
  41. FIND_PACKAGE_HANDLE_STANDARD_ARGS(osgManipulator DEFAULT_MSG
  42. OSGMANIPULATOR_LIBRARY OSGMANIPULATOR_INCLUDE_DIR)