[Build] Enable test discovery in VS Test Explorer

This commit is contained in:
Herman S.
2026-03-05 16:18:23 +09:00
parent 16d2cc05c5
commit 086decfa6e
5 changed files with 10 additions and 1 deletions

View File

@@ -10,6 +10,11 @@ set(CMAKE_C_STANDARD_REQUIRED ON)
option(XENIA_BUILD_TESTS "Build test suites" OFF)
option(XENIA_BUILD_MISC "Build misc subprojects (trace viewers, shader compiler, vfs-dump, demos)" OFF)
if(XENIA_BUILD_TESTS)
enable_testing()
include(${PROJECT_SOURCE_DIR}/third_party/catch/contrib/Catch.cmake)
endif()
# Multi-config generators (VS, Ninja Multi-Config)
get_property(_is_multi_config GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
if(_is_multi_config)