root/OpenSceneGraph/trunk/CMakeModules/FindPerformer.cmake @ 9952

Revision 7369, 2.1 kB (checked in by robert, 10 years ago)

From Guillaume Millet, "Please find in attachment a small improvement to the pfb plugin
CmakeLists?.txt and to the FindPerformer?.cmake module.

Under Windows libs are: libpf.lib (we need to add the lib prefix) and
libpfdu-util.lib (libpfdu and libpfutil are compiled into one lib)
We need to add PFROOT to the search path for libs and includes (default
environment variable for Performer path)
And at last we need to put PFROOT/include and PFROOT/include/Performer
as include dir for compiling."

  • Property svn:eol-style set to native
Line 
1# Locate Performer
2# This module defines
3# PERFORMER_LIBRARY
4# PERFORMER_FOUND, if false, do not try to link to gdal
5# PERFORMER_INCLUDE_DIR, where to find the headers
6#
7# $PERFORMER_DIR is an environment variable that would
8# correspond to the ./configure --prefix=$PERFORMER_DIR
9#
10# Created by Robert Osfield.
11
12FIND_PATH(PERFORMER_INCLUDE_DIR Performer/pfdu.h
13    $ENV{PFROOT}/include
14    $ENV{PFROOT}
15    $ENV{PERFORMER_DIR}/include
16    $ENV{PERFORMER_DIR}
17    $ENV{OSGDIR}/include
18    $ENV{OSGDIR}
19    $ENV{OSG_ROOT}/include
20    ~/Library/Frameworks
21    /Library/Frameworks
22    /usr/local/include
23    /usr/include
24    /sw/include # Fink
25    /opt/local/include # DarwinPorts
26    /opt/csw/include # Blastwave
27    /opt/include
28    [HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OSG_ROOT]/include
29    /usr/freeware/include
30)
31
32IF(MSVC)
33    FIND_LIBRARY(PERFORMER_LIBRARY
34        NAMES libpf
35        PATHS
36        $ENV{PFROOT}/lib
37        $ENV{PFROOT}
38        $ENV{PERFORMER_DIR}/lib
39        $ENV{PERFORMER_DIR}
40        $ENV{OSGDIR}/lib
41        $ENV{OSGDIR}
42        $ENV{OSG_ROOT}/lib
43        ~/Library/Frameworks
44        /Library/Frameworks
45        /usr/local/lib
46        /usr/lib
47        /sw/lib
48        /opt/local/lib
49        /opt/csw/lib
50        /opt/lib
51        [HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OSG_ROOT]/lib
52        /usr/freeware/lib64
53    )
54ELSE(MSVC)
55    FIND_LIBRARY(PERFORMER_LIBRARY
56        NAMES pf
57        PATHS
58        $ENV{PFROOT}/lib
59        $ENV{PFROOT}
60        $ENV{PERFORMER_DIR}/lib
61        $ENV{PERFORMER_DIR}
62        $ENV{OSGDIR}/lib
63        $ENV{OSGDIR}
64        $ENV{OSG_ROOT}/lib
65        ~/Library/Frameworks
66        /Library/Frameworks
67        /usr/local/lib
68        /usr/lib
69        /sw/lib
70        /opt/local/lib
71        /opt/csw/lib
72        /opt/lib
73        [HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OSG_ROOT]/lib
74        /usr/freeware/lib64
75    )
76ENDIF(MSVC)
77
78SET(PERFORMER_FOUND "NO")
79IF(PERFORMER_LIBRARY AND PERFORMER_INCLUDE_DIR)
80    SET(PERFORMER_FOUND "YES")
81ENDIF(PERFORMER_LIBRARY AND PERFORMER_INCLUDE_DIR)
82
83
Note: See TracBrowser for help on using the browser.