<commit_before># cmake -DCMAKE_BUILD_TYPE=Debug ..
# cmake -DSANITIZE=ON -DCMAKE_BUILD_TYPE=Debug ..
# cmake -DCMAKE_BUILD_TYPE=Release ..

cmake_minimum_required( VERSION 3.0.0 )
project( groho )

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/cmake/modules")


# cmake -D SANITIZE=ON ..
option(SANITIZE "Sanitize" OFF)
if(SANITIZE)
  set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fsanitize=address")
endif()

if( CMAKE_BINARY_DIR STREQUAL CMAKE_SOURCE_DIR )
message( FATAL_ERROR "Please make an out of source build: create a build directory and invoke cmake from there." )
endif()

set(CMAKE_CXX_COMPILER "clang++")
set(CMAKE_CXX_FLAGS "-std=c++1z -Wall")
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG")
# NDEBUG will suppress some loguru outputs in Release

find_package( 
    Magnum 
    REQUIRED 
    GL
    Shaders
    Sdl2Application 
)

file(GLOB SOURCES 
    "src/*.cpp" 
    "src/buffer/*.cpp" 
    "src/orrery/*.cpp"
    "src/scenario/*.cpp"
    "src/magnumapp/*.cpp"
)

set(SOURCE_FILES ${SOURCES})
add_executable( groho ${SOURCE_FILES} )

include_directories(
    "src/"
    "src/buffer" 
    "src/orrery"
    "src/scenario"
    "src/magnumapp"
    "src/external" 
)

target_link_libraries( 
    groho
    Magnum::Application
    Magnum::GL
    Magnum::Magnum
    Magnum::Shaders
)
<commit_msg>build: Add Corrade components to build<commit_after># cmake -DCMAKE_BUILD_TYPE=Debug ..
# cmake -DSANITIZE=ON -DCMAKE_BUILD_TYPE=Debug ..
# cmake -DCMAKE_BUILD_TYPE=Release ..

cmake_minimum_required( VERSION 3.0.0 )
project( groho )

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/cmake/modules")


# cmake -D SANITIZE=ON ..
option(SANITIZE "Sanitize" OFF)
if(SANITIZE)
  set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fsanitize=address")
endif()

if( CMAKE_BINARY_DIR STREQUAL CMAKE_SOURCE_DIR )
message( FATAL_ERROR "Please make an out of source build: create a build directory and invoke cmake from there." )
endif()

set(CMAKE_CXX_COMPILER "clang++")
set(CMAKE_CXX_FLAGS "-std=c++1z -Wall")
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG")
# NDEBUG will suppress some loguru outputs in Release

find_package( 
    Magnum 
    REQUIRED 
    GL
    Shaders
    Sdl2Application
)

find_package(
    Corrade
    REQUIRED
    Containers
)

file(GLOB SOURCES 
    "src/*.cpp" 
    "src/buffer/*.cpp" 
    "src/orrery/*.cpp"
    "src/scenario/*.cpp"
    "src/magnumapp/*.cpp"
)

set(SOURCE_FILES ${SOURCES})
add_executable( groho ${SOURCE_FILES} )

include_directories(
    "src/"
    "src/buffer" 
    "src/orrery"
    "src/scenario"
    "src/magnumapp"
    "src/external" 
)

target_link_libraries( 
    groho
    Magnum::Application
    Magnum::GL
    Magnum::Magnum
    Magnum::Shaders
#    Corrade::Corrade
#    Corrade::Containers
)

{'fraction_non_alphanumeric': 0.12167982770997847, 'fraction_numerical': 0.004307250538406317, 'mean_word_length': 3.9679144385026737, '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': '175298', 'n_tokens_mistral': 1147, 'n_tokens_neox': 1067, 'n_words': 205}