<commit_before>cmake_minimum_required(VERSION 2.8)
		
project(badger)

file(
	GLOB_RECURSE
	source_files
    src/*.cpp 
    ../console/*.cpp 
    ../serial/src/*.cpp 
    ../serial/src/Posix/*.cpp
)

include_directories(../console/ ./include/ ../serial/include ../serial/src/ ../serial/src/Unix)

#add_definitions(-std=c++0x)

add_executable(
	badger
	${source_files}
)<commit_msg>Le fichier CMake est maintenant compatible pour les platformes Linux, OSX et Win32<commit_after>cmake_minimum_required(VERSION 2.6)
	
project(badger)


# Detect the OS
if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
    set(WINDOWS 1)
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
    set(LINUX 1)
elseif(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
    # FreeBSD compile path is the same as Linux
    set(LINUX 1)
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
    set(MACOSX 1)
endif()


# Add communs files and directories
file(GLOB COMMUN_SOURCES_FILES src/*.cpp ../console/*.cpp ../serial/src/*.cpp)
include_directories(../console/ ./include/ ../serial/include ../serial/src/)


# Add platform-dependant files and directories
if(LINUX OR MACOSX)
    file(GLOB PLATFORM_SOURCES_FILES ../serial/src/Posix/*.cpp)
    include_directories(../serial/src/Unix)

elseif(WINDOWS)
    file(GLOB PLATFORM_SOURCES_FILES ../serial/src/Win32/*.cpp)
    include_directories(../serial/src/Win32)
endif()


# For GNU C++ compiler add support for c++11 standard
if (CMAKE_COMPILER_IS_GNUCXX)
    execute_process(COMMAND ${CMAKE_CXX_COMPILER} -dumpversion OUTPUT_VARIABLE GCC_VERSION)

    if (GCC_VERSION VERSION_LESS 4.3)
        message(FATAL_ERROR "gcc version < 4.3")
    endif()

    add_definitions(-std=c++0x)
endif()


add_executable(badger ${COMMUN_SOURCES_FILES} ${PLATFORM_SOURCES_FILES})

{'fraction_non_alphanumeric': 0.13496583143507973, 'fraction_numerical': 0.012528473804100227, 'mean_word_length': 4.122448979591836, 'pattern_counts': {'":': 0, '<': 4, '<?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': '2185842', 'n_tokens_mistral': 709, 'n_tokens_neox': 630, 'n_words': 128}