aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
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}