<commit_before>if(MSVC)
    # 3.4 is needed for CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS
    cmake_minimum_required(VERSION 3.4) 
else()
    cmake_minimum_required(VERSION 3.2)
endif()

project(yarrar)
enable_testing()

option(BUILD_SHARED_LIBS "Build shared libs" ON)
option(UNITY_PLUGIN "Build plugin for Unity" OFF)
option(BUILD_EXAMPLES "Build example applications" ON)
option(BUILD_TESTS "Build tests" ON)

set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/build/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/build/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/build/bin)

if(MSVC)
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /D_USE_MATH_DEFINES")
else()
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
endif()

if(ANDROID)
    set("OpenCV_DIR" "${PROJECT_SOURCE_DIR}/external/opencv/sources")
elseif(MSVC)
    include("${PROJECT_SOURCE_DIR}/cmake/windows/PowerShellDownloadDependencies.cmake")
    set("OpenCV_DIR" "${PROJECT_SOURCE_DIR}/external/opencv/build")
endif()

find_package(OpenCV REQUIRED)

add_subdirectory(src)

if(NOT UNITY_PLUGIN)
    if(BUILD_EXAMPLES)
        add_subdirectory(example/desktop_webcam)
    endif()

    if(BUILD_TESTS)
        add_subdirectory(test)
    endif()
endif()<commit_msg>Fix android build.<commit_after>if(MSVC)
    # 3.4 is needed for CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS
    cmake_minimum_required(VERSION 3.4) 
else()
    cmake_minimum_required(VERSION 3.2)
endif()

project(yarrar)
enable_testing()

option(BUILD_SHARED_LIBS "Build shared libs" ON)
option(UNITY_PLUGIN "Build plugin for Unity" OFF)
option(BUILD_EXAMPLES "Build example applications" ON)
option(BUILD_TESTS "Build tests" ON)

set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/build/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/build/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/build/bin)

if(MSVC)
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /D_USE_MATH_DEFINES")
else()
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
endif()

if(ANDROID)
    set("OpenCV_DIR" "${PROJECT_SOURCE_DIR}/external/OpenCV-android-sdk/sdk/native/jni/")
elseif(MSVC)
    include("${PROJECT_SOURCE_DIR}/cmake/windows/PowerShellDownloadDependencies.cmake")
    set("OpenCV_DIR" "${PROJECT_SOURCE_DIR}/external/opencv/build")
endif()

find_package(OpenCV REQUIRED)

add_subdirectory(src)

if(NOT UNITY_PLUGIN AND NOT ANDROID)
    if(BUILD_EXAMPLES)
        add_subdirectory(example/desktop_webcam)
    endif()

    if(BUILD_TESTS)
        add_subdirectory(test)
    endif()
endif()
{'fraction_non_alphanumeric': 0.11621515508441303, 'fraction_numerical': 0.006281900274833137, 'mean_word_length': 6.450292397660819, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7268807', 'n_tokens_mistral': 1021, 'n_tokens_neox': 964, 'n_words': 142}