<commit_before>cmake_minimum_required(VERSION 2.8.12)
project(kvkontakte)

find_package(ECM 5.18.0 REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})

set(REQUIRED_QT_VERSION "5.2")
find_package(Qt5 ${REQUIRED_QT_VERSION} CONFIG REQUIRED Core Network WebKit Widgets)

include(KDEInstallDirs)
include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
include(KDECMakeSettings) # for automoc
include(KDECompilerSettings)

include(FeatureSummary)
include(GenerateExportHeader)

include(ECMSetupVersion)
include(ECMGenerateHeaders)

set(LIBKVKONTAKTE_VERSION "5.0.0")

ecm_setup_version(${LIBKVKONTAKTE_VERSION}
    VARIABLE_PREFIX LIBKVKONTAKTE
    VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/kf5vkontakte_version.h"
    PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/KF5VkontakteConfigVersion.cmake"
    SOVERSION 2)

set(REQUIRED_KF5_VERSION "5.3.0")
find_package(KF5KIO ${REQUIRED_KF5_VERSION} REQUIRED)
find_package(KF5I18n ${REQUIRED_KF5_VERSION} REQUIRED)
find_package(KF5WebKit ${REQUIRED_KF5_VERSION} REQUIRED)
find_package(KF5CoreAddons ${REQUIRED_KF5_VERSION} REQUIRED)

include_directories(${CMAKE_CURRENT_SOURCE_DIR})

# Remove Wsuggest-override GCC flag which generate a lots of compile warnings
while(CMAKE_CXX_FLAGS MATCHES "-Wsuggest-override")
    string(REPLACE "-Wsuggest-override" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
endwhile()

add_subdirectory(src)

if (BUILD_TESTING)<commit_msg>Revert "remove Wsuggest-override GCC flag which generate a lots of compile warnings"<commit_after>cmake_minimum_required(VERSION 2.8.12)
project(kvkontakte)

find_package(ECM 5.18.0 REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})

set(REQUIRED_QT_VERSION "5.2")
find_package(Qt5 ${REQUIRED_QT_VERSION} CONFIG REQUIRED Core Network WebKit Widgets)

include(KDEInstallDirs)
include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
include(KDECMakeSettings) # for automoc
include(KDECompilerSettings)

include(FeatureSummary)
include(GenerateExportHeader)

include(ECMSetupVersion)
include(ECMGenerateHeaders)

set(LIBKVKONTAKTE_VERSION "5.0.0")

ecm_setup_version(${LIBKVKONTAKTE_VERSION}
    VARIABLE_PREFIX LIBKVKONTAKTE
    VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/kf5vkontakte_version.h"
    PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/KF5VkontakteConfigVersion.cmake"
    SOVERSION 2)

set(REQUIRED_KF5_VERSION "5.3.0")
find_package(KF5KIO ${REQUIRED_KF5_VERSION} REQUIRED)
find_package(KF5I18n ${REQUIRED_KF5_VERSION} REQUIRED)
find_package(KF5WebKit ${REQUIRED_KF5_VERSION} REQUIRED)
find_package(KF5CoreAddons ${REQUIRED_KF5_VERSION} REQUIRED)

include_directories(${CMAKE_CURRENT_SOURCE_DIR})

add_subdirectory(src)

if (BUILD_TESTING)
{'fraction_non_alphanumeric': 0.08897058823529412, 'fraction_numerical': 0.022794117647058822, 'mean_word_length': 10.151639344262295, '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': '54086', 'n_tokens_mistral': 1090, 'n_tokens_neox': 1057, 'n_words': 149}