FindosgDB.cmake 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. # FindosgDB
  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 osgDB This module defines
  21. #
  22. # OSGDB_FOUND - Was osgDB found? OSGDB_INCLUDE_DIR - Where to find the
  23. # headers OSGDB_LIBRARIES - The libraries to link against for the osgDB
  24. # (use this)
  25. #
  26. # OSGDB_LIBRARY - The osgDB library OSGDB_LIBRARY_DEBUG - The osgDB
  27. # debug library
  28. #
  29. # $OSGDIR is an environment variable that would correspond to the
  30. # ./configure --prefix=$OSGDIR used in building osg.
  31. #
  32. # Created by Eric Wing.
  33. # Header files are presumed to be included like
  34. # #include <osg/PositionAttitudeTransform>
  35. # #include <osgDB/DatabasePager>
  36. include(${CMAKE_CURRENT_LIST_DIR}/Findosg_functions.cmake)
  37. OSG_FIND_PATH (OSGDB osgDB/DatabasePager)
  38. OSG_FIND_LIBRARY(OSGDB osgDB)
  39. include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
  40. FIND_PACKAGE_HANDLE_STANDARD_ARGS(osgDB DEFAULT_MSG
  41. OSGDB_LIBRARY OSGDB_INCLUDE_DIR)