2021-04-23 15:08:51 +02:00
|
|
|
file(GLOB_RECURSE sdl2gfx_includes
|
|
|
|
"include/*.h"
|
|
|
|
)
|
|
|
|
|
|
|
|
file(GLOB_RECURSE sdl2gfx_sources
|
|
|
|
"src/*.c"
|
|
|
|
)
|
|
|
|
|
|
|
|
add_library(sdl2_gfx
|
|
|
|
${sdl2gfx_includes} ${sdl2gfx_sources}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_include_directories(sdl2_gfx PUBLIC
|
2021-04-24 14:35:49 +02:00
|
|
|
${SDL2_INCLUDE_DIRS}
|
2021-04-23 15:08:51 +02:00
|
|
|
"include"
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(sdl2_gfx PUBLIC
|
2021-04-24 14:35:49 +02:00
|
|
|
SDL2
|
|
|
|
)
|