option(EASY_PROFILER "Enable the profiler" OFF)
if(EASY_PROFILER)
    # Optional external dependencies
    find_package(easy_profiler)

    if(easy_profiler_FOUND)
        # Do nothing, add definitions below
    else()
        message(WARNING "EasyProfiler dependency not found on system, DISABLING it!")
        set(EASY_PROFILER OFF)
    endif()
endif()

if(EASY_PROFILER)
    add_definitions(-DENABLE_EASY_PROFILER)
else()
    add_definitions(-DDISABLE_EASY_PROFILER)
endif()

message("-- Easy Profiler: ${EASY_PROFILER}")
