2 # NOTE: It is highly recommended that you use the new FindOpenSceneGraph.cmake
3 # introduced in CMake 2.6.3 and not use this Find module directly.
5 # This is part of the Findosg* suite used to find OpenSceneGraph components.
6 # Each component is separate and you must opt in to each module. You must
7 # also opt into OpenGL and OpenThreads (and Producer if needed) as these
8 # modules won't do it for you. This is to allow you control over your own
9 # system piece by piece in case you need to opt out of certain components
10 # or change the Find behavior for a particular module (perhaps because the
11 # default FindOpenGL.cmake module doesn't work with your system as an
13 # If you want to use a more convenient module that includes everything,
14 # use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.
19 # OSG_FOUND - Was the Osg found?
20 # OSG_INCLUDE_DIR - Where to find the headers
21 # OSG_LIBRARIES - The libraries to link against for the OSG (use this)
23 # OSG_LIBRARY - The OSG library
24 # OSG_LIBRARY_DEBUG - The OSG debug library
26 # $OSGDIR is an environment variable that would
27 # correspond to the ./configure --prefix=$OSGDIR
28 # used in building osg.
30 # Created by Eric Wing.
32 # Header files are presumed to be included like
33 # #include <osg/PositionAttitudeTransform>
34 # #include <osgUtil/SceneView>
36 include(Findosg_functions)
37 OSG_FIND_PATH (OSG osg/PositionAttitudeTransform)
38 OSG_FIND_LIBRARY(OSG osg)
40 include(FindPackageHandleStandardArgs)
41 FIND_PACKAGE_HANDLE_STANDARD_ARGS(osg DEFAULT_MSG OSG_LIBRARY OSG_INCLUDE_DIR)