cmake: testnative can also be built on non-Linux
This commit is contained in:
@@ -162,7 +162,7 @@ add_sdl_test_executable(testdrawchessboard SOURCES testdrawchessboard.c)
|
||||
add_sdl_test_executable(testdropfile SOURCES testdropfile.c)
|
||||
add_sdl_test_executable(testerror NONINTERACTIVE SOURCES testerror.c)
|
||||
|
||||
if(LINUX AND SDL3_TESTS_SUBPROJECT)
|
||||
if(SDL3_TESTS_SUBPROJECT)
|
||||
set(build_options_dependent_tests )
|
||||
|
||||
add_sdl_test_executable(testevdev NONINTERACTIVE SOURCES testevdev.c)
|
||||
@@ -185,7 +185,7 @@ if(LINUX AND SDL3_TESTS_SUBPROJECT)
|
||||
endif()
|
||||
list(APPEND build_options_dependent_tests testnative)
|
||||
elseif(WINDOWS)
|
||||
add_sdl_test_executable(testnative NEEDS_RESOURCES TESTUTILS SOURCES testnative.ctestnativew32.c)
|
||||
add_sdl_test_executable(testnative NEEDS_RESOURCES TESTUTILS SOURCES testnative.c testnativew32.c)
|
||||
list(APPEND build_options_dependent_tests testnative)
|
||||
elseif(HAVE_X11)
|
||||
add_sdl_test_executable(testnative NEEDS_RESOURCES TESTUTILS SOURCES testnative.c testnativex11.c)
|
||||
|
||||
Reference in New Issue
Block a user