2008-12-01 00:33:11 +08:00
|
|
|
# Locate OpenEXR
|
2008-11-26 20:35:49 +08:00
|
|
|
# This module defines
|
|
|
|
# OPENEXR_LIBRARY
|
2008-12-01 00:33:11 +08:00
|
|
|
# OPENEXR_FOUND, if false, do not try to link to OpenEXR
|
2008-11-26 20:35:49 +08:00
|
|
|
# OPENEXR_INCLUDE_DIR, where to find the headers
|
|
|
|
#
|
|
|
|
# $OPENEXR_DIR is an environment variable that would
|
|
|
|
# correspond to the ./configure --prefix=$OPENEXR_DIR
|
|
|
|
#
|
|
|
|
# Created by Robert Osfield.
|
|
|
|
|
|
|
|
FIND_PATH(OPENEXR_INCLUDE_DIR OpenEXR/ImfIO.h
|
|
|
|
$ENV{OPENEXR_DIR}/include
|
|
|
|
$ENV{OPENEXR_DIR}
|
|
|
|
~/Library/Frameworks
|
|
|
|
/Library/Frameworks
|
|
|
|
/usr/local/include
|
|
|
|
/usr/include
|
|
|
|
/sw/include # Fink
|
|
|
|
/opt/local/include # DarwinPorts
|
|
|
|
/opt/csw/include # Blastwave
|
|
|
|
/opt/include
|
|
|
|
/usr/freeware/include
|
|
|
|
)
|
|
|
|
|
2008-12-01 00:33:11 +08:00
|
|
|
FIND_LIBRARY(OPENEXR_IlmIlf_LIBRARY
|
2008-11-26 20:35:49 +08:00
|
|
|
NAMES IlmImf
|
|
|
|
PATHS
|
|
|
|
$ENV{OPENEXR_DIR}/lib
|
|
|
|
$ENV{OPENEXR_DIR}
|
|
|
|
~/Library/Frameworks
|
|
|
|
/Library/Frameworks
|
|
|
|
/usr/local/lib
|
|
|
|
/usr/lib
|
|
|
|
/sw/lib
|
|
|
|
/opt/local/lib
|
|
|
|
/opt/csw/lib
|
|
|
|
/opt/lib
|
|
|
|
/usr/freeware/lib64
|
|
|
|
)
|
|
|
|
|
2008-12-01 00:33:11 +08:00
|
|
|
FIND_LIBRARY(OPENEXR_Half_LIBRARY
|
|
|
|
NAMES Half
|
|
|
|
PATHS
|
|
|
|
$ENV{OPENEXR_DIR}/lib
|
|
|
|
$ENV{OPENEXR_DIR}
|
|
|
|
~/Library/Frameworks
|
|
|
|
/Library/Frameworks
|
|
|
|
/usr/local/lib
|
|
|
|
/usr/lib
|
|
|
|
/sw/lib
|
|
|
|
/opt/local/lib
|
|
|
|
/opt/csw/lib
|
|
|
|
/opt/lib
|
|
|
|
/usr/freeware/lib64
|
|
|
|
)
|
|
|
|
|
2008-11-26 20:35:49 +08:00
|
|
|
SET(OPENEXR_FOUND "NO")
|
2008-12-01 00:33:11 +08:00
|
|
|
IF(OPENEXR_INCLUDE_DIR AND OPENEXR_IlmIlf_LIBRARY AND OPENEXR_Half_LIBRARY)
|
|
|
|
SET(OPENEXR_LIBRARIES
|
|
|
|
${OPENEXR_IlmIlf_LIBRARY}
|
|
|
|
${OPENEXR_Half_LIBRARY}
|
|
|
|
)
|
2008-11-26 20:35:49 +08:00
|
|
|
SET(OPENEXR_FOUND "YES")
|
2008-12-01 00:33:11 +08:00
|
|
|
ENDIF(OPENEXR_INCLUDE_DIR AND OPENEXR_IlmIlf_LIBRARY AND OPENEXR_Half_LIBRARY)
|