FindosgText.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. FindosgText
  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 osgText This module defines
  17. OSGTEXT_FOUND - Was osgText found? OSGTEXT_INCLUDE_DIR - Where to find
  18. the headers OSGTEXT_LIBRARIES - The libraries to link for osgText (use
  19. this)
  20. OSGTEXT_LIBRARY - The osgText library OSGTEXT_LIBRARY_DEBUG - The
  21. osgText debug library
  22. $OSGDIR is an environment variable that would correspond to the
  23. ./configure --prefix=$OSGDIR used in building osg.
  24. Created by Eric Wing.
  25. #]=======================================================================]
  26. # Header files are presumed to be included like
  27. # #include <osg/PositionAttitudeTransform>
  28. # #include <osgText/Text>
  29. include(${CMAKE_CURRENT_LIST_DIR}/Findosg_functions.cmake)
  30. OSG_FIND_PATH (OSGTEXT osgText/Text)
  31. OSG_FIND_LIBRARY(OSGTEXT osgText)
  32. include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
  33. FIND_PACKAGE_HANDLE_STANDARD_ARGS(osgText DEFAULT_MSG
  34. OSGTEXT_LIBRARY OSGTEXT_INCLUDE_DIR)