aboutsummaryrefslogtreecommitdiffhomepage
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorVaxry <[email protected]>2023-11-17 23:26:54 +0000
committerVaxry <[email protected]>2023-11-17 23:26:54 +0000
commita903dba8581aedfbc04b168e7074e22d1c3d004f (patch)
treef882210fdc447a1b02e01178f0f105a19a8e8974 /CMakeLists.txt
parent395985f81533417d74e1168ac7ea7a9a84c81d21 (diff)
downloadHyprland-a903dba8581aedfbc04b168e7074e22d1c3d004f.tar.gz
Hyprland-a903dba8581aedfbc04b168e7074e22d1c3d004f.zip
cmake: include tracy cpp if set
Diffstat (limited to 'CMakeLists.txt')
-rwxr-xr-xCMakeLists.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index dfe3c456..3bdbb0da 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -106,7 +106,13 @@ pkg_check_modules(deps REQUIRED IMPORTED_TARGET wayland-server wayland-client wa
file(GLOB_RECURSE SRCFILES CONFIGURE_DEPENDS "src/*.cpp")
-add_executable(Hyprland ${SRCFILES})
+set(TRACY_CPP_FILES "")
+if(USE_TRACY)
+ set(TRACY_CPP_FILES "subprojects/tracy/public/TracyClient.cpp")
+ message(STATUS "Tracy enabled, TRACY_CPP_FILES: " ${TRACY_CPP_FILES})
+endif()
+
+add_executable(Hyprland ${SRCFILES} ${TRACY_CPP_FILES})
add_dependencies(Hyprland wlroots)
if(CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_BUILD_TYPE MATCHES DEBUG)