summaryrefslogtreecommitdiff
path: root/os/emscripten/cmake/FindSDL2.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'os/emscripten/cmake/FindSDL2.cmake')
-rw-r--r--os/emscripten/cmake/FindSDL2.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/os/emscripten/cmake/FindSDL2.cmake b/os/emscripten/cmake/FindSDL2.cmake
new file mode 100644
index 000000000..54553958b
--- /dev/null
+++ b/os/emscripten/cmake/FindSDL2.cmake
@@ -0,0 +1,7 @@
+add_library(SDL2::SDL2 INTERFACE IMPORTED)
+set_target_properties(SDL2::SDL2 PROPERTIES
+ INTERFACE_COMPILE_OPTIONS "-sUSE_SDL=2"
+ INTERFACE_LINK_LIBRARIES "-sUSE_SDL=2"
+)
+
+set(SDL2_FOUND on)