<commit_before>## Copyright (c) 2012 Aldebaran Robotics. All rights reserved.
## Use of this source code is governed by a BSD-style license that can be
## found in the COPYING file.

####
# Find a Qt library
# Usage:
# qt_flib(QTCORE "QtCore")
# will look for libQtCore.so, and Qtcore4{d}.dll,
# and include/QtCore
#

include(qibuild/modules/qt-tools)

function(qt_flib _suffix _libame)
  if(QT_USE_QMAKE)
    # Use upstream cmake files
    find_package(Qt4 COMPONENTS ${_libname} REQUIRED)
    include("${QT_USE_FILE}")
    # if compoment has not been found, QT_${_suffix}_INCLUDE_DIR will be
    # set to NOT-FOUND, but QT_LIBRARIES will simply not contain the library ...
    if(QT_${_suffix}_INCLUDE_DIR)
      qi_append_uniq_global(QT_${_suffix}_INCLUDE_DIRS ${QT_INCLUDE_DIR})
      qi_append_uniq_global(QT_${_suffix}_INCLUDE_DIRS ${QT_${_suffix}_INCLUDE_DIR})
      set(QT_${_suffix}_INCLUDE_DIRS ${QT_${_suffix}_INCLUDE_DIRS} PARENT_SCOPE)
    else()
      set(QT_${_suffix}_INCLUDE_DIRS FALSE PARENT_SCOPE)
    endif()<commit_msg>fix qi_add_optional_package(QT_QTMULTIMEDIA) on ubuntu<commit_after>## Copyright (c) 2012 Aldebaran Robotics. All rights reserved.
## Use of this source code is governed by a BSD-style license that can be
## found in the COPYING file.

####
# Find a Qt library
# Usage:
# qt_flib(QTCORE "QtCore")
# will look for libQtCore.so, and Qtcore4{d}.dll,
# and include/QtCore
#

include(qibuild/modules/qt-tools)

function(qt_flib _suffix _libame)
  if(QT_USE_QMAKE)
    # Use upstream cmake files
    find_package(Qt4 COMPONENTS ${_libname} REQUIRED)
    include("${QT_USE_FILE}")
    # if compoment has not been found, QT_${_suffix}_INCLUDE_DIR will be
    # set to NOT-FOUND, but QT_LIBRARIES will simply not contain the library ...
    if(QT_${_suffix}_INCLUDE_DIR)
      qi_append_uniq_global(QT_${_suffix}_INCLUDE_DIRS ${QT_INCLUDE_DIR})
      qi_append_uniq_global(QT_${_suffix}_INCLUDE_DIRS ${QT_${_suffix}_INCLUDE_DIR})
      set(QT_${_suffix}_INCLUDE_DIRS ${QT_${_suffix}_INCLUDE_DIRS} PARENT_SCOPE)
    else()
      set(QT_${_suffix}_INCLUDE_DIRS FALSE PARENT_SCOPE)
      set(QT_${_suffix}_PACKAGE_FOUND FALSE PARENT_SCOPE)
    endif()
{'fraction_non_alphanumeric': 0.10784763653051858, 'fraction_numerical': 0.005507113354749885, 'mean_word_length': 4.940054495912807, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '911149', 'n_tokens_mistral': 898, 'n_tokens_neox': 780, 'n_words': 185}