]> git.cworth.org Git - apitrace/blob - thirdparty/zlib/CMakeLists.txt
b1e953d12bac221e6da86380bc4221c9129dd02a
[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 else ()
9     add_definitions (-DHAVE_UNISTD_H)
10 endif ()
11
12 add_library (z_bundled STATIC
13     adler32.c
14     compress.c
15     crc32.c
16     deflate.c
17     gzclose.c
18     gzlib.c
19     gzread.c
20     gzwrite.c
21     inflate.c
22     infback.c
23     inftrees.c
24     inffast.c
25     trees.c
26     uncompr.c
27     zutil.c
28 )
29
30 set_target_properties (z_bundled PROPERTIES
31     COMPILE_FLAGS "${CMAKE_SHARED_LIBRARY_C_FLAGS}"
32 )