diff options
author | rtk0c <[email protected]> | 2022-04-25 22:17:42 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2022-04-25 22:17:42 -0700 |
commit | 6d228097491868136092a9cc9dc4df8ffd20dbd8 (patch) | |
tree | 46b2f7027a979ada44fa5c6fd3dfedb22d7e8d87 /CMakeLists.txt | |
parent | 7fa7840be1093f194031d2d5d9b45ada8613e72e (diff) |
Changeset: 18 Add tracy
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 10 |
1 files changed, 10 insertions, 0 deletions
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} |