]> git.cworth.org Git - apitrace/blob - thirdparty/zlib/CMakeLists.txt
710855de3765dcc23399cccf0fd3aaeb2ab82092
[apitrace] / thirdparty / zlib / CMakeLists.txt
1 include_directories (${CMAKE_CURRENT_SOURCE_DIR})
2
3 # adjust warnings
4 if (MSVC)
5     add_definitions (-wd4131) # uses old-style declarator
6 else ()
7     add_definitions (-DHAVE_UNISTD_H)
8 endif ()
9
10 add_library (z_bundled STATIC EXCLUDE_FROM_ALL
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 )
31
32 install (
33     FILES README
34     DESTINATION ${DOC_INSTALL_DIR}
35     RENAME LICENSE-zlib.txt
36 )