summaryrefslogtreecommitdiff
path: root/thirdparty/zlib/CMakeLists.txt
blob: c76f9e7a31f865da52862d34d761a5c7f8705a3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
include_directories (${CMAKE_CURRENT_SOURCE_DIR})

# adjust warnings
if (MSVC)
    add_definitions (-wd4131) # uses old-style declarator
else ()
    add_definitions (-DHAVE_UNISTD_H)
endif ()

add_convenience_library (z_bundled EXCLUDE_FROM_ALL
    adler32.c
    compress.c
    crc32.c
    deflate.c
    gzclose.c
    gzlib.c
    gzread.c
    gzwrite.c
    inflate.c
    infback.c
    inftrees.c
    inffast.c
    trees.c
    uncompr.c
    zutil.c
)

install (
    FILES README
    DESTINATION ${DOC_INSTALL_DIR}
    RENAME LICENSE-zlib.txt
)