<commit_before>
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.2)

PROJECT(qxmlrpc)

OPTION(BUILD_TESTING "Enable testing" OFF)
OPTION(qxmlrpc_BUILD_EXAMPLES "Build examples" OFF)


#-----------------------------------------------------------------------------
# Output directories.
#
SET(output_dir ${qxmlrpc_BINARY_DIR}/bin)
FOREACH(type LIBRARY RUNTIME ARCHIVE)
  IF(NOT DEFINED CMAKE_${type}_OUTPUT_DIRECTORY)
    SET(CMAKE_${type}_OUTPUT_DIRECTORY ${output_dir} CACHE INTERNAL "Single output directory for building all libraries.")
  ENDIF()
ENDFOREACH()

#-----------------------------------------------------------------------------
# Qt
#
FIND_PACKAGE(Qt4 4.7 REQUIRED)
SET(QT_USE_QTNETWORK ON)
SET(QT_USE_QTXML ON)
INCLUDE(${QT_USE_FILE})


#-----------------------------------------------------------------------------
# Subdirectories
#

INCLUDE_DIRECTORIES(
  ${CMAKE_CURRENT_SOURCE_DIR}
  ${CMAKE_CURRENT_BINARY_DIR}
  )
ADD_SUBDIRECTORY(xmlrpc)



IF(BUILD_TESTING)
#  ADD_SUBDIRECTORY(test)
ENDIF()

IF(qxmlrpc_BUILD_EXAMPLES)<commit_msg>Set minimum required Qt version to 4.6<commit_after>
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.2)

PROJECT(qxmlrpc)

OPTION(BUILD_TESTING "Enable testing" OFF)
OPTION(qxmlrpc_BUILD_EXAMPLES "Build examples" OFF)


#-----------------------------------------------------------------------------
# Output directories.
#
SET(output_dir ${qxmlrpc_BINARY_DIR}/bin)
FOREACH(type LIBRARY RUNTIME ARCHIVE)
  IF(NOT DEFINED CMAKE_${type}_OUTPUT_DIRECTORY)
    SET(CMAKE_${type}_OUTPUT_DIRECTORY ${output_dir} CACHE INTERNAL "Single output directory for building all libraries.")
  ENDIF()
ENDFOREACH()

#-----------------------------------------------------------------------------
# Qt
#
FIND_PACKAGE(Qt4 4.6 REQUIRED)
SET(QT_USE_QTNETWORK ON)
SET(QT_USE_QTXML ON)
INCLUDE(${QT_USE_FILE})


#-----------------------------------------------------------------------------
# Subdirectories
#

INCLUDE_DIRECTORIES(
  ${CMAKE_CURRENT_SOURCE_DIR}
  ${CMAKE_CURRENT_BINARY_DIR}
  )
ADD_SUBDIRECTORY(xmlrpc)



IF(BUILD_TESTING)
#  ADD_SUBDIRECTORY(test)
ENDIF()

IF(qxmlrpc_BUILD_EXAMPLES)
{'fraction_non_alphanumeric': 0.30137636449928806, 'fraction_numerical': 0.006644518272425249, 'mean_word_length': 2.174698795180723, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 10}, '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': '1917449', 'n_tokens_mistral': 712, 'n_tokens_neox': 675, 'n_words': 113}