SetupEasyProfiler.cmake 428 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
# Optional external dependencies
find_package(easy_profiler)

option(EASY_PROFILER "Enable the profiler" OFF)
if(EASY_PROFILER)
    if(easy_profiler_FOUND)

    else()
        message(WARNING "EasyProfiler dependency not found on system, DISABLING it!")
        set(EASY_PROFILER OFF)
    endif()
endif()

if(NOT EASY_PROFILER)
    add_definitions(-DDISABLE_EASY_PROFILER)
endif()

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