<commit_before>CMAKE_MINIMUM_REQUIRED( VERSION 2.8.5 )

SET(CMAKE_SYSTEM_NAME "Linux")

# Project Declaration

project(cys-engine)

# enable c++11
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")

add_definitions(-m64 -Wall -Wno-unused-function)

# Get source files

file(
  GLOB_RECURSE source_files 
  # ngengine
  ../../src/*
)

include_directories(
  ../../include/
)

add_library(cysengine ${source_files})

add_custom_command(TARGET cysengine POST_BUILD 
  COMMAND ${CMAKE_COMMAND} -E copy libcysengine.a ../../bin/libcysengine.a
)

# TESTS AND TEST RUNNER

MACRO( TEST _target _target_folder )
  file(
    GLOB_RECURSE _sources
    ../../tests/tests/${_target_folder}/*.cpp
  )
  add_executable(${_target} ${_sources})
  include_directories(../../tests/tests/)
  

  file(MAKE_DIRECTORY ../../bin/tests/${_target})
  target_link_libraries(${_target} cysengine)

  add_custom_command(TARGET ${_target} POST_BUILD 
    COMMAND ${CMAKE_COMMAND} -E copy ${_target} ../../bin/tests/${_target_folder}/test
  )

ENDMACRO( TEST )

TEST( 01Tmp 01Tmp )
TEST( utils_data_datatype utils/data/datatype )

# test runner

file(
    GLOB_RECURSE _sources_runner
    ../../tests/runner/*.cpp
  )
add_executable( test_runner ${_sources_runner})

add_custom_command(TARGET test_runner POST_BUILD 
  COMMAND ${CMAKE_COMMAND} -E copy test_runner ../../bin/test-runner
)
<commit_msg>removed tmp files: forgot to remove it in the CMakeFiles.txt -> done<commit_after>CMAKE_MINIMUM_REQUIRED( VERSION 2.8.5 )

SET(CMAKE_SYSTEM_NAME "Linux")

# Project Declaration

project(cys-engine)

# enable c++11
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")

add_definitions(-m64 -Wall -Wno-unused-function)

# Get source files

file(
  GLOB_RECURSE source_files 
  # ngengine
  ../../src/*
)

include_directories(
  ../../include/
)

add_library(cysengine ${source_files})

add_custom_command(TARGET cysengine POST_BUILD 
  COMMAND ${CMAKE_COMMAND} -E copy libcysengine.a ../../bin/libcysengine.a
)

# TESTS AND TEST RUNNER

MACRO( TEST _target _target_folder )
  file(
    GLOB_RECURSE _sources
    ../../tests/tests/${_target_folder}/*.cpp
  )
  add_executable(${_target} ${_sources})
  include_directories(../../tests/tests/)
  

  file(MAKE_DIRECTORY ../../bin/tests/${_target})
  target_link_libraries(${_target} cysengine)

  add_custom_command(TARGET ${_target} POST_BUILD 
    COMMAND ${CMAKE_COMMAND} -E copy ${_target} ../../bin/tests/${_target_folder}/test
  )

ENDMACRO( TEST )

TEST( utils_data_datatype utils/data/datatype )

# test runner

file(
    GLOB_RECURSE _sources_runner
    ../../tests/runner/*.cpp
  )
add_executable( test_runner ${_sources_runner})

add_custom_command(TARGET test_runner POST_BUILD 
  COMMAND ${CMAKE_COMMAND} -E copy test_runner ../../bin/test-runner
)

{'fraction_non_alphanumeric': 0.14177761784814683, 'fraction_numerical': 0.00791651673263764, 'mean_word_length': 3.982078853046595, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '3070345', 'n_tokens_mistral': 1067, 'n_tokens_neox': 1009, 'n_words': 189}