]> git.cworth.org Git - apitrace/blobdiff - CMakeLists.txt
gltrace: Handle negative lengths in glShaderSource* (issue #116).
[apitrace] / CMakeLists.txt
index 91f1b874321caea66abf4cec2ed5597748d68c87..ccaddd0556885d6e27b414c218a54ba9142ce2ac 100644 (file)
@@ -191,6 +191,11 @@ 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)
+        find_library (proc_LIBRARY NAMES proc procps)
+    endif ()
 endif()
 
 if (WIN32 OR APPLE)
@@ -247,6 +252,7 @@ endif ()
 
 if (WIN32)
     add_subdirectory (thirdparty/less)
+    add_subdirectory (thirdparty/directxtex)
 endif ()
 
 # Always use bundled QJSon.