Merge commit '965c16453785279d921b584c92f14bd0ef034730' into main

This commit is contained in:
Sam Lantinga 2022-06-29 17:24:51 -07:00
commit 048da613a5
1 changed files with 12 additions and 7 deletions

View File

@ -1,6 +1,11 @@
cmake_minimum_required(VERSION 3.0.0) cmake_minimum_required(VERSION 3.0)
project(SDL2 C) project(SDL2_test)
include(CTest)
if(NOT TARGET SDL2::SDL2-static)
find_package(SDL2 2.0.23 REQUIRED COMPONENTS SDL2-static SDL2test)
endif()
enable_testing()
if(SDL_INSTALL_TESTS) if(SDL_INSTALL_TESTS)
include(GNUInstallDirs) include(GNUInstallDirs)
@ -8,9 +13,9 @@ endif()
if(PSP) if(PSP)
link_libraries( link_libraries(
SDL2main SDL2::SDL2main
SDL2_test SDL2::SDL2test
SDL2-static SDL2::SDL2-static
GL GL
pspvram pspvram
pspvfpu pspvfpu
@ -23,7 +28,7 @@ if(PSP)
psppower psppower
) )
else() else()
link_libraries(SDL2_test SDL2-static) link_libraries(SDL2::SDL2test SDL2::SDL2-static)
endif() endif()
if(WINDOWS) if(WINDOWS)