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