<commit_before>CMAKE_MINIMUM_REQUIRED(VERSION 3.5)

project( shoot )

add_executable( game
  inputHandler.cpp textures.cpp
  jsonLoader.cpp
  gameStateMachine.cpp playState.cpp transitionState.cpp menuState.cpp
  values.cpp hud.cpp
  animation.cpp position.cpp collision.cpp
  sprite.cpp hero.cpp target.cpp projectile.cpp enemy.cpp
  game.cpp main.cpp
)

include( FindPkgConfig )

pkg_search_module( SDL2 REQUIRED sdl2 )
pkg_search_module( SDL2IMAGE REQUIRED SDL2_image>=2.0.0 )
pkg_search_module( SDL2TTF REQUIRED SDL2_ttf )

include_directories( ${SDL2_INCLUDE_DIRS} ${SDL2IMAGE_INCLUDE_DIRS} ${SDL2TTF_INCLUDE_DIRS} )
target_link_libraries( game ${SDL2_LIBRARIES} ${SDL2IMAGE_LIBRARIES} ${SDL2TTF_LIBRARIES} )


set_property(TARGET game PROPERTY CXX_STANDARD 11)

if ( CMAKE_COMPILER_IS_GNUCC )
    set(CMAKE_CXX_FLAGS  "${CMAKE_CXX_FLAGS} -Wall -g")<commit_msg>trying Windows in cmake<commit_after>CMAKE_MINIMUM_REQUIRED(VERSION 3.5)

project( shoot )

add_executable( game
  inputHandler.cpp textures.cpp
  jsonLoader.cpp
  gameStateMachine.cpp playState.cpp transitionState.cpp menuState.cpp
  values.cpp hud.cpp
  animation.cpp position.cpp collision.cpp
  sprite.cpp hero.cpp target.cpp projectile.cpp enemy.cpp
  game.cpp main.cpp
)

if( WIN32 )

  set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${shoot_SOURCE_DIR}/cmake")
  set(SDL2_PATH "C:\\dev\\SDL\\VC\\SDL2-2.0.5")
  set(SDL2_IMAGE_PATH "C:\\dev\\SDL\\VC\\SDL2_image-2.0.1")
  set(SDL2_TTF_PATH "C:\\dev\\SDL\\VC\\SDL2_ttf-2.0.14")
  
else()
  
  include( FindPkgConfig )

  pkg_search_module( SDL2 REQUIRED sdl2 )
  pkg_search_module( SDL2IMAGE REQUIRED SDL2_image>=2.0.0 )
  pkg_search_module( SDL2TTF REQUIRED SDL2_ttf )
endif( WIN32 )

include_directories( ${SDL2_INCLUDE_DIRS} ${SDL2IMAGE_INCLUDE_DIRS} ${SDL2TTF_INCLUDE_DIRS} )
target_link_libraries( game ${SDL2_LIBRARIES} ${SDL2IMAGE_LIBRARIES} ${SDL2TTF_LIBRARIES} )


set_property(TARGET game PROPERTY CXX_STANDARD 11)

if ( CMAKE_COMPILER_IS_GNUCC )
    set(CMAKE_CXX_FLAGS  "${CMAKE_CXX_FLAGS} -Wall -g")
{'fraction_non_alphanumeric': 0.10689655172413794, 'fraction_numerical': 0.02857142857142857, 'mean_word_length': 5.447619047619048, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4967089', 'n_tokens_mistral': 883, 'n_tokens_neox': 794, 'n_words': 134}