<commit_before>cmake_minimum_required(VERSION 3.0)
project(bgj09)

#find_package(library)

add_definitions("-g -Wall -Wextra -pedantic -Werror -std=c++14 -Wno-unused-parameter")

file(GLOB sources src/*.cpp)

add_executable(bgj09 ${sources})

if(${EMSCRIPTEN})
    set(CROSS_COMPILING ON)
    add_definitions("-Oz -s USE_SDL=2 -s USE_SDL_IMAGE=2 -Wno-warn-absolute-paths")
    set(CMAKE_CXX_LINK_FLAGS "-Oz -s USE_SDL=2 -s USE_SDL_IMAGE=2 -o index.html")
else()
    add_definitions("-O0")
    include(FindPkgConfig)
    pkg_check_modules(SDL2 REQUIRED sdl2 SDL2_gfx SDL2_image SDL2_mixer SDL2_ttf)
endif()

set(ENTITYX_BUILD_TESTING false CACHE BOOL "")
add_subdirectory(entityx)

include_directories(
    ${SDL2_INCLUDE_DIRS}
    glm/
    strapon/
    entityx/
)

target_link_libraries(bgj09
    ${SDL2_LIBRARIES}
    entityx
)<commit_msg>Fix emscripten<commit_after>cmake_minimum_required(VERSION 3.0)
project(bgj09)

#find_package(library)

add_definitions("-g -Wall -Wextra -pedantic -Werror -std=c++14 -Wno-unused-parameter")

file(GLOB sources src/*.cpp)

add_executable(bgj09 ${sources})

if(${EMSCRIPTEN})
    set(CROSS_COMPILING ON)
    add_definitions("-Oz -s USE_SDL=2 -s USE_SDL_IMAGE=2 -Wno-warn-absolute-paths")
    set(CMAKE_CXX_LINK_FLAGS "-Oz -s USE_SDL=2 -s USE_SDL_IMAGE=2 -s TOTAL_MEMORY=32000000 --preload-file ../res -o index.html")
else()
    add_definitions("-O0")
    include(FindPkgConfig)
    pkg_check_modules(SDL2 REQUIRED sdl2 SDL2_gfx SDL2_image SDL2_mixer SDL2_ttf)
endif()

set(ENTITYX_BUILD_TESTING false CACHE BOOL "")
add_subdirectory(entityx)

include_directories(
    ${SDL2_INCLUDE_DIRS}
    glm/
    strapon/
    entityx/
)

target_link_libraries(bgj09
    ${SDL2_LIBRARIES}
    entityx
)
{'fraction_non_alphanumeric': 0.12037037037037036, 'fraction_numerical': 0.03125, 'mean_word_length': 4.782608695652174, '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': '1721832', 'n_tokens_mistral': 755, 'n_tokens_neox': 699, 'n_words': 119}