Make renderdoc build-time integration optional
[platform/upstream/VK-GL-CTS.git] / CMakeLists.txt
index e0d7d43..83c050c 100644 (file)
@@ -1,7 +1,7 @@
 # dEQP cmake file
 
 # Module FindGit requires cmake >= 2.8.2
-cmake_minimum_required(VERSION 3.0)
+cmake_minimum_required(VERSION 3.10.2)
 
 find_package(Git)
 find_package(PythonInterp 3)
@@ -66,6 +66,13 @@ if (NOT ZLIB_INCLUDE_PATH OR NOT ZLIB_LIBRARY)
        # \note ZLIB_LIBRARY and ZLIB_INCLUDE_PATH are promoted from external/zlib/CMakeLists.txt
 endif ()
 
+if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/external/renderdoc/src/renderdoc_app.h")
+       message(STATUS "Renderdoc header found, integration enabled")
+       set(DEQP_HAVE_RENDERDOC_HEADER 1)
+else ()
+       message(STATUS "Renderdoc header not found, integration will not work")
+endif ()
+
 include_directories(${ZLIB_INCLUDE_PATH})
 
 # libpng
@@ -203,6 +210,7 @@ include_directories(
        framework/randomshaders
        framework/egl
        framework/egl/wrapper
+       framework/xexml
        external/vulkancts/framework/vulkan
        )