~guilhem-fr/+junk/performous-fixTrunkPackaging

« back to all changes in this revision

Viewing changes to .pc/jpeg-detection.patch/cmake/Modules/FindJpeg.cmake

  • Committer: Package Import Robot
  • Author(s): Felix Geyer
  • Date: 2012-01-31 15:26:47 UTC
  • mto: This revision was merged to the branch mainline in revision 15.
  • Revision ID: package-import@ubuntu.com-20120131152647-vdwhiuqqyv0fti39
* Team upload.
* Check for jpeglib.h which is actually included instead of jconfig.h.
  The latter is installed in multiarch location. Patch from Ilya Barygin.
  (Closes: #659740)
* Add build-arch and build-indep targets.
* Fix Vcs-Browser link.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# - Try to find Jpeg
 
2
# Once done, this will define
 
3
#
 
4
#  Jpeg_FOUND - system has Jpeg
 
5
#  Jpeg_INCLUDE_DIRS - the Jpeg include directories
 
6
#  Jpeg_LIBRARIES - link these to use Jpeg
 
7
#
 
8
# See documentation on how to write CMake scripts at
 
9
# http://www.cmake.org/Wiki/CMake:How_To_Find_Libraries
 
10
 
 
11
include(LibFindMacros)
 
12
 
 
13
libfind_pkg_check_modules(Jpeg_PKGCONF jpeg)
 
14
 
 
15
find_path(Jpeg_INCLUDE_DIR
 
16
  NAMES jconfig.h
 
17
  PATHS ${Jpeg_PKGCONF_INCLUDE_DIRS}
 
18
)
 
19
 
 
20
find_library(Jpeg_LIBRARY
 
21
  NAMES jpeg
 
22
  PATHS ${Jpeg_PKGCONF_LIBRARY_DIRS}
 
23
)
 
24
 
 
25
set(Jpeg_PROCESS_INCLUDES Jpeg_INCLUDE_DIR)
 
26
set(Jpeg_PROCESS_LIBS Jpeg_LIBRARY)
 
27
libfind_process(Jpeg)
 
28