Made cmake platform independent

This commit is contained in:
Robert 2021-04-24 14:58:02 +02:00
parent 0686e9c920
commit db78910240
2 changed files with 9 additions and 4 deletions

View file

@ -11,10 +11,10 @@ add_library(sdl2_gfx
)
target_include_directories(sdl2_gfx PUBLIC
${SDL2_INCLUDE_DIRS}
"include"
${SDL2_INCLUDE_DIRS}
)
target_link_libraries(sdl2_gfx PUBLIC
SDL2
${SDL2_PREFIX}SDL2 ${SDL2_PREFIX}SDL2main
)