]> git.cworth.org Git - apitrace/blob - thirdparty/zlib/CMakeLists.txt
55423c8b59b5fe439f3d5e34aacf7fe13fada1d8
[apitrace] / thirdparty / zlib / CMakeLists.txt
1 include_directories (${CMAKE_CURRENT_SOURCE_DIR})
2
3 add_definitions (-DNO_VIZ)
4
5 # adjust warnings
6 if (MSVC)
7     add_definitions (-wd4131) # uses old-style declarator
8 endif ()
9
10 add_library (z_bundled STATIC
11     adler32.c
12     compress.c
13     crc32.c
14     deflate.c
15     gzclose.c
16     gzlib.c
17     gzread.c
18     gzwrite.c
19     inflate.c
20     infback.c
21     inftrees.c
22     inffast.c
23     trees.c
24     uncompr.c
25     zutil.c
26 )
27
28 set_target_properties (z_bundled PROPERTIES
29     COMPILE_FLAGS "${CMAKE_SHARED_LIBRARY_C_FLAGS}"
30 )