mirror of
https://github.com/ondra-novak/gates_of_skeldal.git
synced 2025-07-18 20:26:45 -04:00
import sdl, some tests, nothing work yet
This commit is contained in:
parent
a7278bac40
commit
378b5586ab
37 changed files with 721 additions and 167 deletions
16
platform/sdl/tests/CMakeLists.txt
Normal file
16
platform/sdl/tests/CMakeLists.txt
Normal 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} )
|
Loading…
Add table
Add a link
Reference in a new issue