mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
* Shader -> SPIR-V at CTS build time (#1849) Instead of relying on prebuilt checked-in SPIR-V files, compile available shaders at CTS build time. * Add dependency on glslc (available as part of VULKAN_SDK). * Add optional build flag BUILD_GLSL_SHADERS, OFF by default. * Remove pre-built SPIR-V files * Compile Shader -> SPIR-V at CTS build time * Use glslangValidator for shader -> spirv * Add glslangValidator tool for shader -> spirv * Refactor glslangValidator tool retrieval * Address review comments * Use add_subdirectory() instead of include() * Use glslang instead of glslangValidator * Update Github actions CI to install Vulkan SDK
49 lines
1.4 KiB
CMake
49 lines
1.4 KiB
CMake
set (MODULE_NAME VULKAN)
|
|
|
|
if(WIN32)
|
|
list(APPEND CLConform_LIBRARIES vulkan-1 vulkan_wrapper)
|
|
else(WIN32)
|
|
list(APPEND CLConform_LIBRARIES vulkan dl vulkan_wrapper)
|
|
endif(WIN32)
|
|
set(CMAKE_CXX_FLAGS "-fpermissive")
|
|
if(WIN32)
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DVK_USE_PLATFORM_WIN32_KHR")
|
|
endif(WIN32)
|
|
|
|
set (CLConform_VULKAN_LIBRARIES_DIR "${VULKAN_LIB_DIR}")
|
|
|
|
link_directories(${CLConform_VULKAN_LIBRARIES_DIR})
|
|
|
|
list(APPEND CLConform_INCLUDE_DIR ${VULKAN_INCLUDE_DIR})
|
|
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
include_directories (${CLConform_INCLUDE_DIR})
|
|
|
|
set (${MODULE_NAME}_SOURCES
|
|
main.cpp
|
|
test_vulkan_interop_buffer.cpp
|
|
test_vulkan_interop_image.cpp
|
|
test_vulkan_api_consistency.cpp
|
|
test_vulkan_platform_device_info.cpp
|
|
vulkan_interop_common.cpp
|
|
../../test_common/harness/genericThread.cpp
|
|
../../test_common/harness/errorHelpers.cpp
|
|
../../test_common/harness/testHarness.cpp
|
|
../../test_common/harness/kernelHelpers.cpp
|
|
../../test_common/harness/mt19937.cpp
|
|
../../test_common/harness/msvc9.c
|
|
../../test_common/harness/parseParameters.cpp
|
|
../../test_common/harness/deviceInfo.cpp
|
|
../../test_common/harness/crc32.cpp
|
|
)
|
|
|
|
set_source_files_properties(
|
|
${${MODULE_NAME}_SOURCES}
|
|
PROPERTIES LANGUAGE CXX)
|
|
include_directories("../common/vulkan_wrapper")
|
|
|
|
add_subdirectory(shaders)
|
|
|
|
include(../CMakeCommon.txt)
|