]> 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 91f1b874321caea66abf4cec2ed5597748d68c87..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)