cmake: add swift test

This commit is contained in:
Anonymous Maarten committed 2024-07-27 08:39:55 +02:00
1 parent 37881b3150
commit 8a5d1fc196
4 files changed
+45

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
/* Contributed by Piotr Usewicz (https://github.com/pusewicz) */
import SDL3
guard SDL_Init(Uint32(SDL_INIT_VIDEO)) == 0 else {
fatalError("SDL_Init error: \(String(cString: SDL_GetError()))")
}
var sdlVersion = SDL_GetVersion()
print("SDL version: \(sdlVersion)")
SDL_Quit()