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

Collapse All | Expand All

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

Return to bug 276338