Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 284898 | Differences between
and this patch

Collapse All | Expand All

(-)Modules/FindOpenJPEG.cmake (+44 lines)
Line 0 Link Here
1
# - Find OpenJPEG
2
# This module can be used to find OpenJPEG include and library.
3
#
4
# Typical usage could be something like:
5
#    find_package( OpenJPEG REQUIRED )
6
#    include_directories( ${OPENJPEG_INCLUDE_DIR} )
7
#    add_executable( myexe main.cpp )
8
#    target_link_libraries( myexe ${OPENJPEG_LIBRARIES} )
9
#
10
# This module defines:
11
#
12
#    OPENJPEG_INCLUDE_DIR	Path to "openjpeg.h"
13
#    OPENJPEG_LIBRARY           Path to the OpenJPEG library
14
#
15
#    OPENJPEG_FOUND             True if OpenJPEG was found.
16
#
17
# Author: Mauro Toffanin <toffanin.mauro@gmail.com>
18
19
FIND_PATH(OPENJPEG_INCLUDE_DIR openjpeg.h
20
	PATH_SUFFIXES include/openjpeg openjpeg-1.0
21
	PATH
22
	/Library/Frameworks  # On OS X it's preferable the Framework version (if found) over others
23
	~/Library/Frameworks
24
	/opt
25
)
26
27
FIND_LIBRARY(OPENJPEG_LIBRARY
28
	NAMES openjpeg
29
	PATH_SUFFIXES lib libs64 libs/Win32 libs/Win64
30
	PATHS
31
	/Library/Frameworks  # On OS X it's preferable the Framework version (if found) over others
32
	~/Library/Frameworks
33
	/opt
34
)
35
36
# handle the QUIETLY and REQUIRED arguments and set OPENJPEG_FOUND to TRUE if
37
# all listed variables are TRUE
38
INCLUDE(FindPackageHandleStandardArgs)
39
FIND_PACKAGE_HANDLE_STANDARD_ARGS(OpenJPEG DEFAULT_MSG OPENJPEG_LIBRARY OPENJPEG_INCLUDE_DIR)
40
41
MARK_AS_ADVANCED(
42
	OPENJPEG_LIBRARY
43
	OPENJPEG_INCLUDE_DIR
44
)

Return to bug 284898