Add required headers to compile on macos

This commit is contained in:
Sherjil Ozair
2021-01-03 02:27:58 +00:00
parent d8930f15ac
commit 4e80149987
8 changed files with 13 additions and 5 deletions

View File

@ -90,6 +90,7 @@ endif()
# Link and create SDL2 Definition if we're using SDL2
if (SDL2_ENABLED)
find_package(SDL2 REQUIRED)
add_compile_definitions(BLAH_USE_SDL2)
target_include_directories(blah PUBLIC "$<BUILD_INTERFACE:${SDL2_INCLUDE_DIRS}>")
set(LIBS ${LIBS} ${SDL2_LIBRARIES})