20 lines
282 B
CMake
20 lines
282 B
CMake
![]() |
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
|
||
|
SDL2
|
||
|
"include"
|
||
|
)
|
||
|
|
||
|
target_link_libraries(sdl2_gfx PUBLIC
|
||
|
SDL2::SDL2
|
||
|
)
|