~ubuntu-branches/ubuntu/jaunty/quassel/jaunty

« back to all changes in this revision

Viewing changes to cmake/modules/FindQt4.cmake

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2009-02-13 10:36:45 UTC
  • mfrom: (1.1.14 upstream)
  • Revision ID: james.westby@ubuntu.com-20090213103645-skjf7s3h3j9ly3o2
Tags: 0.4.0~git090213-0ubuntu1
* New upstream git snapshot
  - Continued bug fixing

Show diffs side-by-side

added added

removed removed

Lines of Context:
246
246
#  
247
247
#  QT_DOC_DIR                 Path to "doc" of Qt4
248
248
#  QT_MKSPECS_DIR             Path to "mkspecs" of Qt4
 
249
#  QT_TRANSLATIONS_DIR        Path to "translations" of Qt4
249
250
#
250
251
#
251
252
# These are around for backwards compatibility 
482
483
    FILE(TO_CMAKE_PATH "${qt_plugins_dir}" qt_plugins_dir)
483
484
    SET(QT_PLUGINS_DIR ${qt_plugins_dir} CACHE PATH "The location of the Qt plugins")
484
485
  ENDIF (QT_LIBRARY_DIR AND NOT QT_PLUGINS_DIR)
 
486
 
 
487
  # ask qmake for the translations directory
 
488
  IF (QT_LIBRARY_DIR AND NOT QT_TRANSLATIONS_DIR)
 
489
    EXEC_PROGRAM( ${QT_QMAKE_EXECUTABLE}
 
490
      ARGS "-query QT_INSTALL_TRANSLATIONS"
 
491
      OUTPUT_VARIABLE qt_translations_dir )
 
492
    # make sure we have / and not \ as qmake gives on windows
 
493
    FILE(TO_CMAKE_PATH "${qt_translations_dir}" qt_translations_dir)
 
494
    SET(QT_TRANSLATIONS_DIR ${qt_translations_dir} CACHE PATH "The location of the Qt translations")
 
495
  ENDIF (QT_LIBRARY_DIR AND NOT QT_TRANSLATIONS_DIR)
 
496
 
485
497
  ########################################
486
498
  #
487
499
  #       Setting the INCLUDE-Variables