cmake: disallow '#include "SDL.h"'

This commit is contained in:
Anonymous Maarten authored and Anonymous Maarten committed 2024-05-22 20:17:13 +02:00
1 parent f2e3437311
commit e10207e831
3 files changed
-12

No files matched your search

-2
View File
@@ -41,8 +41,6 @@ add_feature_info("TEST_FULL" TEST_FULL "Build full SDL testsuite")
find_package(SDL3 REQUIRED CONFIG COMPONENTS Headers)
add_library(headers_test_slash OBJECT inc_sdl_slash.c)
target_link_libraries(headers_test_slash PRIVATE SDL3::Headers)
add_library(headers_test_noslash OBJECT inc_sdl_noslash.c)
target_link_libraries(headers_test_noslash PRIVATE SDL3::Headers)
if(TEST_SHARED)
find_package(SDL3 REQUIRED CONFIG COMPONENTS SDL3-shared)
-8
View File
@@ -1,8 +0,0 @@
#include "SDL.h"
#include "SDL_main.h"
void inc_sdl_noslash(void) {
SDL_SetMainReady();
SDL_Init(0);
SDL_Quit();
}