Squashed 'cmake/' content from commit 2d25566
git-subtree-dir: cmake git-subtree-split: 2d25566a1c5162ce3fd6bfc268d5665de182af89
This commit is contained in:
78
cmake-2.8.0-modules/osg/FindosgParticle.cmake
Normal file
78
cmake-2.8.0-modules/osg/FindosgParticle.cmake
Normal file
@@ -0,0 +1,78 @@
|
||||
# This is part of the Findosg* suite used to find OpenSceneGraph components.
|
||||
# Each component is separate and you must opt in to each module. You must
|
||||
# also opt into OpenGL and OpenThreads (and Producer if needed) as these
|
||||
# modules won't do it for you. This is to allow you control over your own
|
||||
# system piece by piece in case you need to opt out of certain components
|
||||
# or change the Find behavior for a particular module (perhaps because the
|
||||
# default FindOpenGL.cmake module doesn't work with your system as an
|
||||
# example).
|
||||
# If you want to use a more convenient module that includes everything,
|
||||
# use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.
|
||||
#
|
||||
# Locate osgParticle
|
||||
# This module defines
|
||||
#
|
||||
# OSGPARTICLE_FOUND - Was osgParticle found?
|
||||
# OSGPARTICLE_INCLUDE_DIR - Where to find the headers
|
||||
# OSGPARTICLE_LIBRARIES - The libraries to link for osgParticle (use this)
|
||||
#
|
||||
# OSGPARTICLE_LIBRARY - The osgParticle library
|
||||
# OSGPARTICLE_LIBRARY_DEBUG - The osgParticle debug library
|
||||
#
|
||||
# $OSGDIR is an environment variable that would
|
||||
# correspond to the ./configure --prefix=$OSGDIR
|
||||
# used in building osg.
|
||||
#
|
||||
# Created by Eric Wing.
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2007-2009 Kitware, Inc.
|
||||
#
|
||||
# Distributed under the OSI-approved BSD License (the "License");
|
||||
# see below.
|
||||
#
|
||||
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the License for more information.
|
||||
#=============================================================================
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
#
|
||||
# * Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
#
|
||||
# * Neither the names of Kitware, Inc., the Insight Software Consortium,
|
||||
# nor the names of their contributors may be used to endorse or promote
|
||||
# products derived from this software without specific prior written
|
||||
# permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
# HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#=============================================================================
|
||||
|
||||
# Header files are presumed to be included like
|
||||
# #include <osg/PositionAttitudeTransform>
|
||||
# #include <osgParticle/FireEffect>
|
||||
|
||||
include(Findosg_functions)
|
||||
OSG_FIND_PATH (OSGPARTICLE osgParticle/FireEffect)
|
||||
OSG_FIND_LIBRARY(OSGPARTICLE osgParticle)
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(osgParticle DEFAULT_MSG
|
||||
OSGPARTICLE_LIBRARY OSGPARTICLE_INCLUDE_DIR)
|
||||
Reference in New Issue
Block a user