<commit_before>cmake_minimum_required(VERSION 2.8)

set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)

include_directories(
    ${CMAKE_CURRENT_SOURCE_DIR}
    ${CMAKE_CURRENT_BINARY_DIR}
)

if(NOT GLUON_BUILD_ALL)
    project(GluonPlayer)
    option(INSTALL_EXAMPLES "Install the game examples for Gluon Player" ON)
    find_package(GluonCore REQUIRED)
    find_package(GluonInput REQUIRED)
    find_package(GluonEngine REQUIRED)
    find_package(GluonGraphics REQUIRED)
endif(NOT GLUON_BUILD_ALL)

set(LIBATTICA_MIN_VERSION 0.1.90)
find_package(LibAttica)
if(LIBATTICA_FOUND)
    include_directories(${LIBATTICA_INCLUDE_DIR})
    add_subdirectory(lib)

    if(WITH_KDE)
        find_package(KDE4)
        if(KDE4_FOUND)
            include_directories(${KDE4_INCLUDES})
            add_subdirectory(kde)
            add_subdirectory(kdeext)

            if(BUILD_PLASMOID)
                add_subdirectory(plasmoid)
            endif(BUILD_PLASMOID)
        elseif(KDE4_FOUND)
            message(STATUS "WITH_KDE is enabled but KDE libraries are not found - not building the KDE players or the Plasmoid")
        endif(KDE4_FOUND)
    endif(WITH_KDE)

    find_package(Qt4)
    if(QT_QTDECLARATIVE_FOUND)
        add_subdirectory(touch)
    else(QT_QTDECLARATIVE_FOUND)
        message(WARNING "Qt installation lacks Qt Declarative - disabling touch based player")
    endif(QT_QTDECLARATIVE_FOUND)

else(LIBATTICA_FOUND)
    message(WARNING "Could not find LibAttica or a too old version was found.")
    message(WARNING "Building libGluonPlayer without Attica support!")
endif(LIBATTICA_FOUND)

add_subdirectory(icons)<commit_msg>Fix the elseif(KDE4_FOUND) buggyness since we do not have condition there<commit_after>cmake_minimum_required(VERSION 2.8)

set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)

include_directories(
    ${CMAKE_CURRENT_SOURCE_DIR}
    ${CMAKE_CURRENT_BINARY_DIR}
)

if(NOT GLUON_BUILD_ALL)
    project(GluonPlayer)
    option(INSTALL_EXAMPLES "Install the game examples for Gluon Player" ON)
    find_package(GluonCore REQUIRED)
    find_package(GluonInput REQUIRED)
    find_package(GluonEngine REQUIRED)
    find_package(GluonGraphics REQUIRED)
endif(NOT GLUON_BUILD_ALL)

set(LIBATTICA_MIN_VERSION 0.1.90)
find_package(LibAttica)
if(LIBATTICA_FOUND)
    include_directories(${LIBATTICA_INCLUDE_DIR})
    add_subdirectory(lib)

    if(WITH_KDE)
        find_package(KDE4)
        if(KDE4_FOUND)
            include_directories(${KDE4_INCLUDES})
            add_subdirectory(kde)
            add_subdirectory(kdeext)

            if(BUILD_PLASMOID)
                add_subdirectory(plasmoid)
            endif(BUILD_PLASMOID)
        else(KDE4_FOUND)
            message(STATUS "WITH_KDE is enabled but KDE libraries are not found - not building the KDE players or the Plasmoid")
        endif(KDE4_FOUND)
    endif(WITH_KDE)

    find_package(Qt4)
    if(QT_QTDECLARATIVE_FOUND)
        add_subdirectory(touch)
    else(QT_QTDECLARATIVE_FOUND)
        message(WARNING "Qt installation lacks Qt Declarative - disabling touch based player")
    endif(QT_QTDECLARATIVE_FOUND)

else(LIBATTICA_FOUND)
    message(WARNING "Could not find LibAttica or a too old version was found.")
    message(WARNING "Building libGluonPlayer without Attica support!")
endif(LIBATTICA_FOUND)

add_subdirectory(icons)
{'fraction_non_alphanumeric': 0.07001795332136446, 'fraction_numerical': 0.007480550568521843, 'mean_word_length': 4.027067669172932, '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': '730856', 'n_tokens_mistral': 1224, 'n_tokens_neox': 1131, 'n_words': 211}