mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 04:25:34 +00:00
cmake: let cmake test script make use of the installed cmake scripts
This commit is contained in:
parent
3617691fe0
commit
965c164537
|
@ -1,6 +1,11 @@
|
|||
cmake_minimum_required(VERSION 3.0.0)
|
||||
project(SDL2 C)
|
||||
include(CTest)
|
||||
cmake_minimum_required(VERSION 3.0)
|
||||
project(SDL2_test)
|
||||
|
||||
if(NOT TARGET SDL2::SDL2-static)
|
||||
find_package(SDL2 2.0.23 REQUIRED COMPONENTS SDL2-static SDL2test)
|
||||
endif()
|
||||
|
||||
enable_testing()
|
||||
|
||||
if(SDL_INSTALL_TESTS)
|
||||
include(GNUInstallDirs)
|
||||
|
@ -8,9 +13,9 @@ endif()
|
|||
|
||||
if(PSP)
|
||||
link_libraries(
|
||||
SDL2main
|
||||
SDL2_test
|
||||
SDL2-static
|
||||
SDL2::SDL2main
|
||||
SDL2::SDL2test
|
||||
SDL2::SDL2-static
|
||||
GL
|
||||
pspvram
|
||||
pspvfpu
|
||||
|
@ -23,7 +28,7 @@ if(PSP)
|
|||
psppower
|
||||
)
|
||||
else()
|
||||
link_libraries(SDL2_test SDL2-static)
|
||||
link_libraries(SDL2::SDL2test SDL2::SDL2-static)
|
||||
endif()
|
||||
|
||||
if(WINDOWS)
|
||||
|
|
Loading…
Reference in a new issue