diff options
author | Vaxry <[email protected]> | 2023-11-17 23:26:54 +0000 |
---|---|---|
committer | Vaxry <[email protected]> | 2023-11-17 23:26:54 +0000 |
commit | a903dba8581aedfbc04b168e7074e22d1c3d004f (patch) | |
tree | f882210fdc447a1b02e01178f0f105a19a8e8974 /CMakeLists.txt | |
parent | 395985f81533417d74e1168ac7ea7a9a84c81d21 (diff) | |
download | Hyprland-a903dba8581aedfbc04b168e7074e22d1c3d004f.tar.gz Hyprland-a903dba8581aedfbc04b168e7074e22d1c3d004f.zip |
cmake: include tracy cpp if set
Diffstat (limited to 'CMakeLists.txt')
-rwxr-xr-x | CMakeLists.txt | 8 |
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) |