~ubuntu-branches/ubuntu/saucy/darktable/saucy

« back to all changes in this revision

Viewing changes to cmake/modules/FindFLICKCURL.cmake

  • Committer: Bazaar Package Importer
  • Author(s): David Bremner
  • Date: 2011-04-14 23:42:12 UTC
  • Revision ID: james.westby@ubuntu.com-20110414234212-kuffcz5wiu18v6ra
Tags: upstream-0.8
ImportĀ upstreamĀ versionĀ 0.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# - Try to find FlickCurl
 
2
# Once done, this will define
 
3
#
 
4
#  FLICKCURL_FOUND - system has Glib
 
5
#  FLICKCURL_INCLUDE_DIRS - the Glib include directories
 
6
#  FLICKCURL_LIBRARIES - link these to use Glib
 
7
 
 
8
 
 
9
# INCLUDE(UsePkgConfig)
 
10
 
 
11
# use pkg-config to get the directories and then use these values
 
12
# in the FIND_PATH() and FIND_LIBRARY() calls
 
13
# PKGCONFIG(flickcurl _flickcurlIncDir _flickcurlLinkDir _flickculrLinkFlags _flickcurlCflags)
 
14
 
 
15
# SET(FLICKCURL_LIBS ${_flickcurlCflags})
 
16
 
 
17
FIND_PATH(FLICKCURL_INCLUDE_DIR flickcurl.h
 
18
  /usr/include
 
19
  /usr/local/include
 
20
  PATH_SUFFIXES flickcurl
 
21
)
 
22
 
 
23
FIND_LIBRARY(FLICKCURL_LIBRARY
 
24
  NAMES ${FLICKCURL_NAMES} libflickcurl.so
 
25
  PATHS /usr/lib /usr/local/lib
 
26
)
 
27
 
 
28
include(FindPackageHandleStandardArgs)
 
29
find_package_handle_standard_args(FLICKCURL DEFAULT_MSG FLICKCURL_LIBRARY FLICKCURL_INCLUDE_DIR)
 
30
 
 
31
IF(FLICKCURL_FOUND)
 
32
  SET(FLICKCURL_LIBRARIES ${FLICKCURL_LIBRARY})
 
33
  SET(FLICKCURL_INCLUDE_DIRS ${FLICKCURL_INCLUDE_DIR})
 
34
ENDIF(FLICKCURL_FOUND)