[Refactor] (buildsystem): don't require SPIRV-Tools

This commit is contained in:
2025-08-25 13:30:48 +08:00
parent fae9bcd0df
commit 700d72f180
4 changed files with 17 additions and 11 deletions
+5 -2
View File
@@ -23,8 +23,8 @@ set(MGL_ROOT ${CMAKE_CURRENT_LIST_DIR}/../..)
# Find the required libraries using our custom Find modules
find_package(glslang REQUIRED)
find_package(SPIRVTools REQUIRED)
find_package(SPIRVCross REQUIRED)
find_package(SPIRVTools)
add_executable(
SanityTest
@@ -42,10 +42,13 @@ message(STATUS "SPIRVCross_LIBRARIES: ${SPIRVCross_LIBRARIES}")
# Set the libraries to link against
set(LINK_LIBRARIES
${glslang_LIBRARIES}
${SPIRVTools_LIBRARIES}
${SPIRVCross_LIBRARIES}
)
if (SPIRVTools_FOUND)
list(APPEND LINK_LIBRARIES ${SPIRVTools_LIBRARIES})
endif()
include(GoogleTest)
gtest_discover_tests(SanityTest)