Build: Add ENABLE_GSRUNNER option to build GSRunner via CMake

This commit is contained in:
TheLastRar 2024-08-02 18:34:16 +01:00 committed by Ty
parent 2320330b6a
commit e292c0986f
2 changed files with 9 additions and 0 deletions

View File

@ -60,6 +60,14 @@ if(ENABLE_TESTS)
add_subdirectory(tests/ctest)
endif()
# gsrunner
if(ENABLE_GSRUNNER)
if (NOT WIN32)
message(WARNING "GSRunner is only supported on Windows and may not build on your system")
endif()
add_subdirectory(pcsx2-gsrunner)
endif()
#-------------------------------------------------------------------------------
if(NOT IS_SUPPORTED_COMPILER)
message(WARNING "

View File

@ -5,6 +5,7 @@ set(PCSX2_DEFS "")
# Misc option
#-------------------------------------------------------------------------------
option(ENABLE_TESTS "Enables building the unit tests" ON)
option(ENABLE_GSRUNNER "Enables building the GSRunner" OFF)
option(LTO_PCSX2_CORE "Enable LTO/IPO/LTCG on the subset of pcsx2 that benefits most from it but not anything else")
option(USE_VTUNE "Plug VTUNE to profile GS JIT.")