From a0b6646bbd601bfeaf0106cb4c22958c53085cac Mon Sep 17 00:00:00 2001 From: hnOsmium0001 Date: Mon, 25 Apr 2022 22:17:42 -0700 Subject: Add tracy --- CMakeLists.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 73e95cd..7ebe02f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,6 +10,7 @@ add_subdirectory(3rdparty/glm) add_subdirectory(3rdparty/imgui) add_subdirectory(3rdparty/imguizmo) add_subdirectory(3rdparty/imguicolortextedit) +add_subdirectory(3rdparty/tracy) # add_executable requires at least one source file add_executable(${PROJECT_NAME} dummy.c) @@ -44,8 +45,17 @@ target_link_libraries(${PROJECT_NAME} PRIVATE imgui ImGuizmo ImGuiColorTextEdit + tracy ) +option(BRUSSEL_ENABLE_PROFILING "Whether profiling support is enabled or not." OFF) +if(BRUSSEL_ENABLE_PROFILING) + target_compile_definitions(${PROJECT_NAME} + PRIVATE + TRACY_ENABLE + ) +endif() + option(BRUSSEL_ENABLE_ASAN "Enable AddressSanitizer or not." OFF) if(BRUSSEL_ENABLE_ASAN) target_compile_options(${PROJECT_NAME} -- cgit v1.2.3-70-g09d2