mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-11 21:58:31 +09:00
27 lines
585 B
CMake
27 lines
585 B
CMake
cmake_minimum_required(VERSION 3.14)
|
|
|
|
add_executable(
|
|
SpirvPassTest
|
|
SpirvPassTest.cpp
|
|
DemoteFloat64Test.cpp
|
|
)
|
|
|
|
target_include_directories(SpirvPassTest PRIVATE
|
|
${MGL_ROOT}/include
|
|
${MGL_ROOT}/MobileGL
|
|
${MGL_ROOT}/3rdparty/SPIRV-Reflect
|
|
)
|
|
|
|
target_link_libraries(
|
|
SpirvPassTest PRIVATE
|
|
GTest::gtest_main
|
|
${LINK_LIBRARIES}
|
|
)
|
|
|
|
if (MSVC)
|
|
target_compile_options(SpirvPassTest PRIVATE /Zc:preprocessor)
|
|
endif()
|
|
|
|
include(GoogleTest)
|
|
gtest_discover_tests(SpirvPassTest DISCOVERY_TIMEOUT 30 PROPERTIES LABELS unit)
|