cmake: add khronos include directories with PRIVATE visibility

This commit is contained in:
Anonymous Maarten
2024-05-07 16:53:23 +02:00
committed by Anonymous Maarten
parent 7bcbc48c61
commit 9aff68746f
2 changed files with 3 additions and 2 deletions

View File

@@ -131,6 +131,7 @@ macro(add_sdl_test_executable TARGET)
add_executable(${TARGET} ${AST_SOURCES} ${EXTRA_SOURCES})
endif()
SDL_AddCommonCompilerFlags(${TARGET})
target_include_directories(${TARGET} PRIVATE "${SDL3_SOURCE_DIR}/src/video/khronos")
target_link_libraries(${TARGET} PRIVATE SDL3::SDL3_test SDL3::${sdl_name_component})
if(NOT AST_NO_C90 AND NOT SDL_CMAKE_PLATFORM MATCHES "^(n3ds|ps2|psp)$")
set_property(TARGET ${TARGET} PROPERTY C_STANDARD 90)