get_filename_component(PackageName ${CMAKE_CURRENT_SOURCE_DIR} NAME)
project(${PackageName})

set(PublicDependencies
    $<$<CONFIG:Debug,RelWithDebInfo>:quill::quill>
    $<IF:$<BOOL:${ASAN}>,mimalloc-asan,mimalloc-static>
    unordered_dense::unordered_dense
    EASTL::EASTL
    flatbuffers::flatbuffers
    rapidhash::rapidhash)
set(PrivateDependencies)
set(BigfootPublicDependencies)
set(BigfootPrivateDependencies)

bigfoot_create_package_lib(
    "${PublicDependencies}"
    "${PrivateLibraries}"
    "${BigfootPublicDependencies}"
    "${BigfootPrivateDependencies}"
    "")
set_source_files_properties(../Utils/MimallocImpl.cpp PROPERTIES SKIP_UNITY_BUILD_INCLUSION ON)

bigfoot_create_logger()

target_compile_definitions(${PROJECT_NAME}
        PUBLIC
        $<$<CONFIG:Debug,RelWithDebInfo>:QUILL_NO_EXCEPTIONS>
        $<$<CONFIG:Debug,RelWithDebInfo>:QUILL_DISABLE_NON_PREFIXED_MACROS>)