cmake: install SDL2::SDL2test when configuring with SDL2_TEST enabled

This commit is contained in:
Anonymous Maarten
2022-05-27 01:40:11 +02:00
committed by Sam Lantinga
parent ae2cc29f8b
commit 1087eaad7e
3 changed files with 32 additions and 4 deletions

View File

@@ -73,7 +73,7 @@ To use, set the following CMake variables when running CMake's configuration sta
- for iOS-Simulator, using the latest, installed SDK, and building SDL test apps (as .app bundles):
`cmake ~/sdl -DSDL_TEST=1 -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_SYSROOT=iphonesimulator -DCMAKE_OSX_ARCHITECTURES=x86_64`
`cmake ~/sdl -DSDL_TESTS=1 -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_SYSROOT=iphonesimulator -DCMAKE_OSX_ARCHITECTURES=x86_64`
- for tvOS-Simulator, using the latest, installed SDK: