summaryrefslogtreecommitdiff
path: root/indra/cmake/Tracy.cmake
diff options
context:
space:
mode:
authorDave Houlton <euclid@lindenlab.com>2021-07-19 16:26:33 -0600
committerDave Houlton <euclid@lindenlab.com>2021-07-27 17:46:29 -0600
commit1a782ed690e56bf81ec9073041c7559e1762855d (patch)
treea4c20189069e945e3a34c21146fb14744a62a3a7 /indra/cmake/Tracy.cmake
parent08f04113c9252258c9cb6132efa327432c3c27e0 (diff)
SL-15595 update viewer autobuild to import tracy lib
Diffstat (limited to 'indra/cmake/Tracy.cmake')
-rw-r--r--indra/cmake/Tracy.cmake17
1 files changed, 17 insertions, 0 deletions
diff --git a/indra/cmake/Tracy.cmake b/indra/cmake/Tracy.cmake
new file mode 100644
index 0000000000..bf09bccd4b
--- /dev/null
+++ b/indra/cmake/Tracy.cmake
@@ -0,0 +1,17 @@
+# -*- cmake -*-
+include(Prebuilt)
+
+set(TRACY ON CACHE BOOL "Use Tracy profiler.")
+
+if (TRACY)
+ set(TRACY_INCLUDE_DIR ${LIBS_PREBUILT_DIR}/include/tracy)
+ if (WINDOWS)
+ use_prebuilt_binary(tracy)
+ set(TRACY_LIBRARY tracy)
+ else (WINDOWS)
+ set(TRACY_LIBRARY "")
+ endif (WINDOWS)
+else (TRACY)
+ set(TRACY_LIBRARY "")
+endif (TRACY)
+