]> git.cworth.org Git - apitrace/blobdiff - CMakeLists.txt
Extend profiling tool to support Vsize and Rss memory usage profile per call
[apitrace] / CMakeLists.txt
index 3ee670d08ba856916968bce4418f4716ec253b94..90bfc870aade3941c9ab3a5c769e9873010f550a 100644 (file)
@@ -191,6 +191,10 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
         ERROR_QUIET
         OUTPUT_STRIP_TRAILING_WHITESPACE
     )
+    CHECK_INCLUDE_FILES(proc/readproc.h READPROC_H_FOUND)
+    if (READPROC_H_FOUND)
+        add_definitions (-DHAVE_READPROC_H)
+    endif ()
 endif()
 
 if (WIN32 OR APPLE)
@@ -352,13 +356,18 @@ install (
         scripts/jsondiff.py
         scripts/profileshader.py
         scripts/retracediff.py
-        scripts/samples.py
         scripts/snapdiff.py
         scripts/tracecheck.py
         scripts/tracediff.py
         scripts/unpickle.py
     DESTINATION ${SCRIPTS_INSTALL_DIR}
 )
+if (WIN32)
+    install (
+        PROGRAMS scripts/convert.py
+        DESTINATION ${SCRIPTS_INSTALL_DIR}
+    )
+endif ()
 
 ##############################################################################
 # GUI