SDLU/lib/sdl2_gfx/CMakeLists.txt
2021-04-24 15:00:22 +02:00

21 lines
330 B
CMake
Vendored

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
"include"
${SDL2_INCLUDE_DIRS}
)
target_link_libraries(sdl2_gfx PUBLIC
${SDL2_PREFIX}SDL2 ${SDL2_PREFIX}SDL2main
)