aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorhnOsmium0001 <[email protected]>2022-04-25 22:17:42 -0700
committerhnOsmium0001 <[email protected]>2022-04-25 22:17:42 -0700
commita0b6646bbd601bfeaf0106cb4c22958c53085cac (patch)
treed806d5a9135feed65ca4d7ac0972e6e8fa109d28 /CMakeLists.txt
parente826894632f59c214c309d934843c49d73103612 (diff)
Add tracy
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt10
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}