~ubuntu-branches/ubuntu/saucy/digikam/saucy

« back to all changes in this revision

Viewing changes to extra/libkvkontakte/cmake/modules/FindQJSON.cmake

  • Committer: Package Import Robot
  • Author(s): Felix Geyer, Rohan Garg, Philip Muškovac, Felix Geyer
  • Date: 2011-09-23 18:18:55 UTC
  • mfrom: (1.2.36 upstream)
  • Revision ID: package-import@ubuntu.com-20110923181855-ifs67wxkugshev9k
Tags: 2:2.1.1-0ubuntu1
[ Rohan Garg ]
* New upstream release (LP: #834190)
  - debian/control
    + Build with libqtwebkit-dev
 - debian/kipi-plugins-common
    + Install libkvkontakte required by kipi-plugins
 - debian/digikam
    + Install panoramagui

[ Philip Muškovac ]
* New upstream release
  - debian/control:
    + Add libcv-dev, libcvaux-dev, libhighgui-dev, libboost-graph1.46-dev,
      libksane-dev, libxml2-dev, libxslt-dev, libqt4-opengl-dev, libqjson-dev,
      libgpod-dev and libqca2-dev to build-deps
    + Add packages for kipi-plugins, libmediawiki, libkface, libkgeomap and
      libkvkontakte
  - debian/rules:
    + Don't build with gphoto2 since it doesn't build with it.
  - Add kubuntu_fix_test_linking.diff to fix linking of the dngconverter test
  - update install files
  - update kubuntu_01_mysqld_executable_name.diff for new cmake layout
    and rename to kubuntu_mysqld_executable_name.diff
* Fix typo in digikam-data description (LP: #804894)
* Fix Vcs links

[ Felix Geyer ]
* Move library data files to the new packages libkface-data, libkgeomap-data
  and libkvkontakte-data.
* Override version of the embedded library packages to 1.0~digikam<version>.
* Exclude the library packages from digikam-dbg to prevent file conflicts in
  the future.
* Call dh_install with --list-missing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Find QJSON - JSON handling library for Qt
 
2
#
 
3
# This module defines
 
4
#  QJSON_FOUND - whether the qsjon library was found
 
5
#  QJSON_LIBRARIES - the qjson library
 
6
#  QJSON_INCLUDE_DIR - the include path of the qjson library
 
7
#
 
8
 
 
9
if (QJSON_INCLUDE_DIR AND QJSON_LIBRARIES)
 
10
 
 
11
  # Already in cache
 
12
  set (QJSON_FOUND TRUE)
 
13
 
 
14
else (QJSON_INCLUDE_DIR AND QJSON_LIBRARIES)
 
15
 
 
16
  if (NOT WIN32)
 
17
    set (_pc_qjson_string "QJson")
 
18
    if (QJSON_FIND_VERSION_EXACT)
 
19
      set (_pc_qjson_string "${_pc_qjson_string}=")
 
20
    else (QJSON_FIND_VERSION_EXACT)
 
21
      set (_pc_qjson_string "${_pc_qjson_string}>=")
 
22
    endif (QJSON_FIND_VERSION_EXACT)
 
23
    if (QJSON_FIND_VERSION_COUNT GREATER 0)
 
24
      set (_pc_qjson_string "${_pc_qjson_string}${QJSON_FIND_VERSION}")
 
25
    else (QJSON_FIND_VERSION_COUNT GREATER 0)
 
26
      set (_pc_qjson_string "${_pc_qjson_string}0.5")
 
27
    endif (QJSON_FIND_VERSION_COUNT GREATER 0)
 
28
    # use pkg-config to get the values of QJSON_INCLUDE_DIRS
 
29
    # and QJSON_LIBRARY_DIRS to add as hints to the find commands.
 
30
    include (FindPkgConfig)
 
31
    pkg_check_modules (PC_QJSON ${_pc_qjson_string})
 
32
    set (QJSON_VERSION "${PC_QJSON_VERSION}")
 
33
  endif (NOT WIN32)
 
34
 
 
35
  find_library (QJSON_LIBRARIES
 
36
    NAMES
 
37
    qjson
 
38
    PATHS
 
39
    ${PC_QJSON_LIBRARY_DIRS}
 
40
    ${LIB_INSTALL_DIR}
 
41
    ${KDE4_LIB_DIR}
 
42
  )
 
43
 
 
44
  find_path (QJSON_INCLUDE_DIR
 
45
    NAMES
 
46
    qjson/parser.h
 
47
    PATHS
 
48
    ${PC_QJSON_INCLUDE_DIRS}
 
49
    ${INCLUDE_INSTALL_DIR}
 
50
    ${KDE4_INCLUDE_DIR}
 
51
  )
 
52
 
 
53
  include(FindPackageHandleStandardArgs)
 
54
  find_package_handle_standard_args(QJSON
 
55
                                    REQUIRED_VARS QJSON_LIBRARIES QJSON_INCLUDE_DIR
 
56
                                    VERSION_VAR QJSON_VERSION
 
57
  )
 
58
 
 
59
endif (QJSON_INCLUDE_DIR AND QJSON_LIBRARIES)