summaryrefslogtreecommitdiffstats
path: root/libmariadb/zlib/CMakeLists.txt
blob: dc352b407c3610182205379aca9fe2a5c3b17e2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
INCLUDE_DIRECTORIES(${CC_SOURCE_DIR}/zlib)

SET(SOURCE_FILES adler32.c compress.c crc32.c deflate.c gzclose.c gzlib.c gzread.c gzwrite.c infback.c inffast.c inflate.c inftrees.c minigzip.c trees.c uncompr.c zutil.c)

ADD_LIBRARY(zlib ${SOURCE_FILES})
SET_TARGET_PROPERTIES(zlib PROPERTIES  COMPILE_FLAGS
   "${CMAKE_SHARED_LIBRARY_C_FLAGS}")

INSTALL(TARGETS
        zlib
        RUNTIME DESTINATION "lib"
        LIBRARY DESTINATION "lib"
        ARCHIVE DESTINATION "lib")