FindosgParticle.cmake 2.2 KB

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