pcsx2/tests/ctest/GS/CMakeLists.txt

27 lines
797 B
CMake
Raw Normal View History

2021-04-24 04:46:12 +00:00
foreach(isa "sse4" "avx" "avx2")
set(GSDir ${CMAKE_SOURCE_DIR}/pcsx2/GS)
2021-08-13 05:39:40 +00:00
if(${native_vector_isa} LESS ${isa_number_${isa}})
2021-04-24 04:46:12 +00:00
# Skip unsupported tests
continue()
endif()
add_pcsx2_test(swizzle_test_${isa}
swizzle_test_main.cpp
2021-08-13 05:39:40 +00:00
swizzle_test_nops.cpp
2021-04-24 04:46:12 +00:00
${GSDir}/GSBlock.cpp
${GSDir}/GSBlock.h
${GSDir}/GSClut.cpp
${GSDir}/GSClut.h
${GSDir}/GSTables.cpp
${GSDir}/GSTables.h)
target_include_directories(swizzle_test_${isa} PRIVATE ${GSDir} ${CMAKE_SOURCE_DIR}/pcsx2/ ${CMAKE_SOURCE_DIR}/pcsx2/gui)
2021-08-13 05:39:40 +00:00
if(WIN32)
target_include_directories(swizzle_test_${isa} PRIVATE ${CMAKE_SOURCE_DIR}/3rdparty)
2021-04-24 04:46:12 +00:00
endif()
2021-08-13 05:39:40 +00:00
target_compile_options(swizzle_test_${isa} PRIVATE ${compile_options_${isa}})
target_compile_definitions(swizzle_test_${isa} PRIVATE ${definitions_${isa}})
2021-04-24 04:46:12 +00:00
endforeach()