<commit_before>CMAKE_MINIMUM_REQUIRED(VERSION 2.6)

PROJECT(Tower-Defence CXX)

#ADD_DEFINITIONS(-Wall -g -pg -fprofile-arcs -ftest-coverage)
ADD_DEFINITIONS(-Wall -g -O0)

file(GLOB SourceFiles ${CMAKE_SOURCE_DIR}/src/*.cpp)
file(GLOB HeaderFiles ${CMAKE_SOURCE_DIR}/src/*.h)

# Gamelogic
file(GLOB GameLogicSourceFiles ${CMAKE_SOURCE_DIR}/src/GameLogic/*.cpp)
file(GLOB GameLogicHeaderFiles ${CMAKE_SOURCE_DIR}/src/GameLogic/*.h)

# Renderer
file(GLOB RendererSourceFiles ${CMAKE_SOURCE_DIR}/src/Renderer/*.cpp)
file(GLOB RendererHeaderFiles ${CMAKE_SOURCE_DIR}/src/Renderer/*.h)

# EventHandler
#file(GLOB EventHandlerSourceFiles ${CMAKE_SOURCE_DIR}/src/EventHandler/*.cpp)
#file(GLOB EventHandlerHeaderFiles ${CMAKE_SOURCE_DIR}/src/EventHandler/*.h)

# InputHandler
file(GLOB InputHandlerSourceFiles ${CMAKE_SOURCE_DIR}/src/InputHandler/*.cpp)
file(GLOB InputHandlerHeaderFiles ${CMAKE_SOURCE_DIR}/src/InputHandler/*.h)

SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/utils )
SET(CMAKE_EXE_LINKER_FLAGS "-pg")

set(SourceFiles ${SourceFiles} ${RendererSourceFiles} ${GameLogicSourceFiles} ${EventHandlerSourceFiles} ${InputHandlerSourceFiles} )
set(HeadereFiles ${HeaderFiles} ${RendererSourceFiles} ${GameLogicHeaderFiles} ${EventHandlerHeaderFiles} ${InputHandlerHeaderFiles} )

find_package ( SFML REQUIRED )

if( NOT SFML_FOUND )
     message( FATAL_ERROR "ERROR: SFML not found" )
else()
     message( STATUS "SFML found" )
endif( NOT SFML_FOUND )

ADD_EXECUTABLE(Tower-Defence ${SourceFiles} ${HeaderFiles})

set_target_properties(Tower-Defence PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)

if(WIN32)
        TARGET_LINK_LIBRARIES(Tower-Defence sfml-system sfml-window)
elseif (UNIX)
       TARGET_LINK_LIBRARIES(Tower-Defence sfml-system X11 EGL GLESv2 )

endif()<commit_msg>EventHandler added back.<commit_after>CMAKE_MINIMUM_REQUIRED(VERSION 2.6)

PROJECT(Tower-Defence CXX)

#ADD_DEFINITIONS(-Wall -g -pg -fprofile-arcs -ftest-coverage)
ADD_DEFINITIONS(-Wall -g -O0)

file(GLOB SourceFiles ${CMAKE_SOURCE_DIR}/src/*.cpp)
file(GLOB HeaderFiles ${CMAKE_SOURCE_DIR}/src/*.h)

# Gamelogic
file(GLOB GameLogicSourceFiles ${CMAKE_SOURCE_DIR}/src/GameLogic/*.cpp)
file(GLOB GameLogicHeaderFiles ${CMAKE_SOURCE_DIR}/src/GameLogic/*.h)

# Renderer
file(GLOB RendererSourceFiles ${CMAKE_SOURCE_DIR}/src/Renderer/*.cpp)
file(GLOB RendererHeaderFiles ${CMAKE_SOURCE_DIR}/src/Renderer/*.h)

# EventHandler
file(GLOB EventHandlerSourceFiles ${CMAKE_SOURCE_DIR}/src/EventHandler/*.cpp)
file(GLOB EventHandlerHeaderFiles ${CMAKE_SOURCE_DIR}/src/EventHandler/*.h)

# InputHandler
#file(GLOB InputHandlerSourceFiles ${CMAKE_SOURCE_DIR}/src/InputHandler/*.cpp)
#file(GLOB InputHandlerHeaderFiles ${CMAKE_SOURCE_DIR}/src/InputHandler/*.h)

SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/utils )
SET(CMAKE_EXE_LINKER_FLAGS "-pg")

set(SourceFiles ${SourceFiles} ${RendererSourceFiles} ${GameLogicSourceFiles} ${EventHandlerSourceFiles} ${InputHandlerSourceFiles} )
set(HeadereFiles ${HeaderFiles} ${RendererSourceFiles} ${GameLogicHeaderFiles} ${EventHandlerHeaderFiles} ${InputHandlerHeaderFiles} )

find_package ( SFML REQUIRED )

if( NOT SFML_FOUND )
     message( FATAL_ERROR "ERROR: SFML not found" )
else()
     message( STATUS "SFML found" )
endif( NOT SFML_FOUND )

ADD_EXECUTABLE(Tower-Defence ${SourceFiles} ${HeaderFiles})

set_target_properties(Tower-Defence PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)

if(WIN32)
        TARGET_LINK_LIBRARIES(Tower-Defence sfml-system sfml-window)
elseif (UNIX)
       TARGET_LINK_LIBRARIES(Tower-Defence sfml-system X11 EGL GLESv2 )

endif()
{'fraction_non_alphanumeric': 0.12311488894982177, 'fraction_numerical': 0.004387167534960241, 'mean_word_length': 7.405529953917051, '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': '3252182', 'n_tokens_mistral': 1345, 'n_tokens_neox': 1283, 'n_words': 205}