~ubuntu-branches/ubuntu/vivid/emscripten/vivid

« back to all changes in this revision

Viewing changes to tests/poppler/cmake/modules/FindLIBOPENJPEG.cmake

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2013-05-02 13:11:51 UTC
  • Revision ID: package-import@ubuntu.com-20130502131151-q8dvteqr1ef2x7xz
Tags: upstream-1.4.1~20130504~adb56cb
ImportĀ upstreamĀ versionĀ 1.4.1~20130504~adb56cb

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# - Try to find the libopenjpeg library
 
2
# Once done this will define
 
3
#
 
4
#  LIBOPENJPEG_FOUND - system has libopenjpeg
 
5
#  LIBOPENJPEG_INCLUDE_DIRS - the libopenjpeg include directories
 
6
#  LIBOPENJPEG_LIBRARIES - Link these to use libopenjpeg
 
7
#  LIBOPENJPEG_INCLUDE_DIR is internal and deprecated for use
 
8
 
 
9
# Copyright (c) 2008, Albert Astals Cid, <aacid@kde.org>
 
10
#
 
11
# Redistribution and use is allowed according to the terms of the BSD license.
 
12
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
 
13
 
 
14
 
 
15
if (LIBOPENJPEG_LIBRARIES AND LIBOPENJPEG_INCLUDE_DIR)
 
16
 
 
17
  # in cache already
 
18
  set(LIBOPENJPEG_FOUND TRUE)
 
19
 
 
20
else (LIBOPENJPEG_LIBRARIES AND LIBOPENJPEG_INCLUDE_DIR)
 
21
 
 
22
  #reset vars
 
23
  set(LIBOPENJPEG_LIBRARIES)
 
24
  set(LIBOPENJPEG_INCLUDE_DIR)
 
25
 
 
26
  find_path (LIBOPENJPEG_INCLUDE_DIR openjpeg.h PATH_SUFFIXES openjpeg)
 
27
  find_library(LIBOPENJPEG_LIBRARIES openjpeg)
 
28
  if(LIBOPENJPEG_INCLUDE_DIR AND LIBOPENJPEG_LIBRARIES)
 
29
    set(LIBOPENJPEG_FOUND TRUE)
 
30
  endif(LIBOPENJPEG_INCLUDE_DIR AND LIBOPENJPEG_LIBRARIES)
 
31
 
 
32
  include(FindPackageHandleStandardArgs)
 
33
  find_package_handle_standard_args(LibOpenJPEG DEFAULT_MSG LIBOPENJPEG_LIBRARIES LIBOPENJPEG_INCLUDE_DIR)
 
34
 
 
35
endif (LIBOPENJPEG_LIBRARIES AND LIBOPENJPEG_INCLUDE_DIR)
 
36
 
 
37
set(LIBOPENJPEG_INCLUDE_DIRS ${LIBOPENJPEG_INCLUDE_DIR})