import sdl, some tests, nothing work yet

This commit is contained in:
Ondřej Novák 2025-01-26 15:03:44 +01:00
parent a7278bac40
commit 378b5586ab
37 changed files with 721 additions and 167 deletions

View file

@ -0,0 +1,16 @@
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/tests/)
set(testFiles sdl_minimal_test.cpp sdl_surface_test.cpp
)
foreach (testFile ${testFiles})
string(REGEX MATCH "([^\/]+$)" filename ${testFile})
string(REGEX MATCH "[^.]*" executable_name test_${filename})
add_executable(${executable_name} ${testFile})
target_link_libraries(${executable_name} ${SDL2_LIBRARIES} )
add_test(NAME ${executable_name} COMMAND ${executable_name})
endforeach ()
add_executable(sdl_fullscreen_window sdl_fullscreen_window.cpp)
target_link_libraries(sdl_fullscreen_window ${SDL2_LIBRARIES} )