blob: 6c7b70461ff25adef53731f5c6b4e0daf63bdb14 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# -*- cmake -*-
include(Variables)
include(GLEXT)
include(Prebuilt)
include_guard()
add_library( ll::SDL INTERFACE IMPORTED )
if (LINUX)
#Must come first as use_system_binary can exit this file early
target_compile_definitions( ll::SDL INTERFACE LL_SDL_VERSION=2 LL_SDL)
#find_package(SDL2 REQUIRED)
#target_link_libraries( ll::SDL INTERFACE SDL2::SDL2 SDL2::SDL2main X11)
use_prebuilt_binary(SDL2)
target_link_libraries( ll::SDL INTERFACE SDL2 sndio X11)
endif (LINUX)
|