~ubuntu-branches/ubuntu/precise/quassel/precise-updates

« back to all changes in this revision

Viewing changes to cmake/modules/FindQCA2.cmake

  • Committer: Package Import Robot
  • Author(s): Scott Kitterman
  • Date: 2012-03-20 18:21:56 UTC
  • mfrom: (1.1.48)
  • Revision ID: package-import@ubuntu.com-20120320182156-pv9bi7xbuvj4p162
Tags: 0.8.0-0ubuntu1
* New upstream release
* Add debian/patches/0001-Support-intermediate-CA-certificates.patch and
  0002-Allow-the-core-to-use-expired-certificates.patch from Felix Geyer to
  correct issues with SSL integration

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
    set(QCA2_DEFINITIONS ${PC_QCA2_CFLAGS_OTHER})
31
31
  endif (NOT WIN32)
32
32
 
33
 
  find_library_with_debug(QCA2_LIBRARIES
34
 
                  WIN32_DEBUG_POSTFIX d
35
 
                  NAMES qca
36
 
                  HINTS ${PC_QCA2_LIBDIR} ${PC_QCA2_LIBRARY_DIRS}
37
 
                  )
 
33
  find_library(QCA2_LIBRARIES_DEBUG
 
34
                  NAMES qcad qcad2
 
35
                  HINTS ${PC_QCA2_LIBDIR} ${PC_QCA2_LIBRARY_DIRS}
 
36
                  )
 
37
  find_library(QCA2_LIBRARIES_RELEASE
 
38
                  NAMES qca qca2
 
39
                  HINTS ${PC_QCA2_LIBDIR} ${PC_QCA2_LIBRARY_DIRS}
 
40
                  )
 
41
  # if the release- as well as the debug-version of the library have been found:
 
42
  IF (QCA2_LIBRARIES_DEBUG AND QCA2_LIBRARIES_RELEASE)
 
43
    # if the generator supports configuration types then set
 
44
    # optimized and debug libraries, or if the CMAKE_BUILD_TYPE has a value
 
45
    IF (CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE)
 
46
      SET(QCA2_LIBRARIES       optimized ${QCA2_LIBRARIES_RELEASE} debug ${QCA2_LIBRARIES_DEBUG})
 
47
    ELSE(CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE)
 
48
      # if there are no configuration types and CMAKE_BUILD_TYPE has no value
 
49
      # then just use the release libraries
 
50
      SET(QCA2_LIBRARIES       ${QCA2_LIBRARIES_RELEASE} )
 
51
    ENDIF(CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE)
 
52
  ELSE (QCA2_LIBRARIES_DEBUG AND QCA2_LIBRARIES_RELEASE)
 
53
    IF (QCA2_LIBRARIES_RELEASE)
 
54
       SET(QCA2_LIBRARIES ${QCA2_LIBRARIES_RELEASE})
 
55
    ENDIF (QCA2_LIBRARIES_RELEASE)
 
56
  ENDIF (QCA2_LIBRARIES_DEBUG AND QCA2_LIBRARIES_RELEASE)
 
57
 
38
58
 
39
59
  find_path(QCA2_INCLUDE_DIR qca.h
40
60
            HINTS ${PC_QCA2_INCLUDEDIR} ${PC_QCA2_INCLUDE_DIRS}