<commit_before>#
# Copyright (c) 2016 <NAME>
#
# This file is part of the Realms Of Steel.
# For conditions of distribution and use, see copyright details in the LICENSE file.
#
add_library(Engine ${ROS_LINKAGE_TYPE}
    Source/Application/LogMessage.cpp
    Source/Application/LogsLevelFilter.cpp
    Source/Application/LogsSink.cpp
    Source/Application/LogsConsoleSink.cpp
    Source/Application/LogsFileSink.cpp
    Source/Application/Logger.cpp
    Source/Application/Application.cpp
    Source/Application/Window.cpp
)
target_compile_definitions(Engine
    PUBLIC ROS_VERSION="${PROJECT_VERSION}"
    PUBLIC ROS_LINKAGE_${ROS_LINKAGE_TYPE}
)
target_compile_options(Engine PUBLIC -Wall -Wextra -Wpedantic -Wno-long-long $<$<CONFIG:RELEASE>:-Winline> $<$<CONFIG:RELEASE>:-Wdisabled-optimization>)
target_include_directories(Engine PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/Include)

find_package(Boost REQUIRED COMPONENTS system thread filesystem chrono)
if (Boost_FOUND)
    target_include_directories(Engine PUBLIC ${Boost_INCLUDE_DIRS})
    target_link_libraries(Engine PRIVATE ${Boost_LIBRARIES})
endif()

if (ROS_USE_ZIP)
    find_package(ZLIB)
    if (ZLIB_FOUND)
        target_include_directories(Engine PRIVATE ${ZLIB_INCLUDE_DIRS})
        target_link_libraries(Engine PRIVATE ${ZLIB_LIBRARIES})
        target_compile_definitions(Engine PRIVATE ROS_USING_ZIP)<commit_msg>Make boost dependencies a link interface of the engine<commit_after>#
# Copyright (c) 2016 <NAME>
#
# This file is part of the Realms Of Steel.
# For conditions of distribution and use, see copyright details in the LICENSE file.
#
add_library(Engine ${ROS_LINKAGE_TYPE}
    Source/Application/LogMessage.cpp
    Source/Application/LogsLevelFilter.cpp
    Source/Application/LogsSink.cpp
    Source/Application/LogsConsoleSink.cpp
    Source/Application/LogsFileSink.cpp
    Source/Application/Logger.cpp
    Source/Application/Application.cpp
    Source/Application/Window.cpp
)
target_compile_definitions(Engine
    PUBLIC ROS_VERSION="${PROJECT_VERSION}"
    PUBLIC ROS_LINKAGE_${ROS_LINKAGE_TYPE}
)
target_compile_options(Engine PUBLIC -Wall -Wextra -Wpedantic -Wno-long-long $<$<CONFIG:RELEASE>:-Winline> $<$<CONFIG:RELEASE>:-Wdisabled-optimization>)
target_include_directories(Engine PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/Include)

find_package(Boost REQUIRED COMPONENTS system thread filesystem chrono)
if (Boost_FOUND)
    target_include_directories(Engine PUBLIC ${Boost_INCLUDE_DIRS})
    target_link_libraries(Engine PUBLIC ${Boost_LIBRARIES})
endif()

if (ROS_USE_ZIP)
    find_package(ZLIB)
    if (ZLIB_FOUND)
        target_include_directories(Engine PRIVATE ${ZLIB_INCLUDE_DIRS})
        target_link_libraries(Engine PRIVATE ${ZLIB_LIBRARIES})
        target_compile_definitions(Engine PRIVATE ROS_USING_ZIP)
{'fraction_non_alphanumeric': 0.08785714285714286, 'fraction_numerical': 0.002857142857142857, 'mean_word_length': 5.621749408983452, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '1510260', 'n_tokens_mistral': 939, 'n_tokens_neox': 868, 'n_words': 173}