]>
Commit | Line | Data |
---|---|---|
b4167869 JB |
1 | --- mediastreamer2-4.5.22/CMakeLists.txt.orig 2021-07-09 18:37:34.690096407 +0200 |
2 | +++ mediastreamer2-4.5.22/CMakeLists.txt 2021-07-09 19:32:39.148861285 +0200 | |
3 | @@ -287,7 +287,13 @@ endif() | |
4 | if(NOT APPLE AND NOT ANDROID AND OPENGL_FOUND OR GLX_FOUND) | |
5 | find_package(Glew REQUIRED) | |
6 | endif() | |
7 | -# TODO: Handle SDL option | |
8 | +if(ENABLE_SDL) | |
9 | + find_package(SDL) | |
10 | + if(NOT SDL_FOUND) | |
11 | + message(WARNING "Could not find SDL library") | |
12 | + set(ENABLE_SDL OFF CACHE BOOL "Enable SDL video output." FORCE) | |
13 | + endif() | |
14 | +endif() | |
15 | if(ENABLE_THEORA) | |
16 | find_package(Theora) | |
17 | if(NOT THEORA_FOUND) | |
18 | @@ -453,6 +459,9 @@ if(GLEW_FOUND) | |
19 | list(APPEND LINK_LIBS GLEW) | |
20 | list(APPEND MEDIASTREAMER2_INCLUDE_DIRS ${GLEW_INCLUDE_DIRS}) | |
21 | endif() | |
22 | +if(SDL_FOUND) | |
23 | + list(APPEND LINK_LIBS SDL) | |
24 | +endif() | |
25 | if(THEORA_FOUND) | |
26 | list(APPEND LINK_LIBS theora) | |
27 | endif() |