]> git.cworth.org Git - apitrace/blob - thirdparty/zlib/CMakeLists.txt
wgltrace: Simplify pixel format attrib description.
[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 EXCLUDE_FROM_ALL
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 )
33
34 install (
35     FILES README
36     DESTINATION ${DOC_INSTALL_DIR}
37     RENAME LICENSE-zlib.txt
38 )