]> git.cworth.org Git - apitrace/blobdiff - thirdparty/zlib/CMakeLists.txt
Put all thirdparty code into a separate subdirectory.
[apitrace] / thirdparty / zlib / CMakeLists.txt
diff --git a/thirdparty/zlib/CMakeLists.txt b/thirdparty/zlib/CMakeLists.txt
new file mode 100644 (file)
index 0000000..42caa7b
--- /dev/null
@@ -0,0 +1,20 @@
+include_directories(${CMAKE_CURRENT_SOURCE_DIR})
+
+add_library (z_bundled STATIC
+    adler32.c
+    compress.c
+    crc32.c
+    gzio.c
+    uncompr.c
+    deflate.c
+    trees.c
+    zutil.c
+    inflate.c
+    infback.c
+    inftrees.c
+    inffast.c
+)
+
+set_target_properties (z_bundled PROPERTIES
+    COMPILE_FLAGS "${CMAKE_SHARED_LIBRARY_C_FLAGS}"
+)