<commit_before>﻿cmake_minimum_required(VERSION 3.1)
set (CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
set (CMAKE_CXX_STANDARD 11)

project(simplesp)

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


## simplesp
find_package(SIMPLESP REQUIRED)
include_directories(${SIMPLESP_DIR})


## external
include_directories(${SIMPLESP_DIR}/external)
include_directories(${SIMPLESP_DIR}/external/imgui)
include_directories(${SIMPLESP_DIR}/external/tinyfd)

link_directories(${SIMPLESP_DIR}/external)
file(GLOB EX_LIBS ${SIMPLESP_DIR}/external/*.lib)


## openCV
option(SP_USE_OPENCV "SP_USE_OPENCV" OFF)
if(SP_USE_OPENCV)
    find_package(OpenCV REQUIRED)
    
    include_directories(${OpenCV_INCLUDE_DIRS})
    link_directories(${OpenCV_LIB_DIRS})
    
    set(EX_LIBS "${EX_LIBS} ${OpenCV_LIBS})")
endif(SP_USE_OPENCV)


## openGL
option(SP_USE_OPENGL "SP_USE_OPENGL" OFF)
if(SP_USE_OPENGL)
    find_package(OpenGL REQUIRED)
    find_package(GLFW REQUIRED)
    
    include_directories(${GLFW_INCLUDE_DIR})
    
    set(EX_LIBS "${EX_LIBS} ${OPENGL_LIBRARY} ${GLFW_LIB}")
endif()


## OpenMP
option(SP_USE_OPENMP "SP_USE_OPENMP" ON)
if(SP_USE_OPENMP) 
    find_package(OpenMP)
    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")<commit_msg>refactoring<commit_after>﻿cmake_minimum_required(VERSION 3.1)
set (CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
set (CMAKE_CXX_STANDARD 11)

project(simplesp)

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


## simplesp
find_package(SIMPLESP REQUIRED)
include_directories(${SIMPLESP_DIR})


## external
include_directories(${SIMPLESP_DIR}/external)
include_directories(${SIMPLESP_DIR}/external/imgui)
include_directories(${SIMPLESP_DIR}/external/tinyfd)

link_directories(${SIMPLESP_DIR}/external)
file(GLOB EX_LIBS ${SIMPLESP_DIR}/external/*.lib)


## openCV
option(SP_USE_OPENCV "SP_USE_OPENCV" OFF)
if(SP_USE_OPENCV)
    find_package(OpenCV REQUIRED)
    
    include_directories(${OpenCV_INCLUDE_DIRS})
    link_directories(${OpenCV_LIB_DIRS})
    
    set(EX_LIBS ${EX_LIBS} ${OpenCV_LIBS})
endif(SP_USE_OPENCV)


## openGL
option(SP_USE_OPENGL "SP_USE_OPENGL" OFF)
if(SP_USE_OPENGL)
    find_package(OpenGL REQUIRED)
    find_package(GLFW REQUIRED)
    
    include_directories(${GLFW_INCLUDE_DIR})
    
    set(EX_LIBS ${EX_LIBS} ${OPENGL_LIBRARY} ${GLFW_LIB})
endif()


## OpenMP
option(SP_USE_OPENMP "SP_USE_OPENMP" ON)
if(SP_USE_OPENMP) 
    find_package(OpenMP)
    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
{'fraction_non_alphanumeric': 0.1244398483281627, 'fraction_numerical': 0.002757669769045157, 'mean_word_length': 7.611275964391691, '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': '5673547', 'n_tokens_mistral': 1244, 'n_tokens_neox': 1156, 'n_words': 135}