Welcome to mirror list, hosted at ThFree Co, Russian Federation.

CMakeLists.txt « zlib « 3rd_party « src - github.com/marian-nmt/marian.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 63e0b08ea5821bdc6209f4aeddda54238b8836ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# list of sources files of the library
file(GLOB ZLIB_SRC *.c)
file(GLOB ZLIB_INC *.h)

# add sources of the wrapper as a "zlib" static library
add_library(zlib OBJECT ${ZLIB_SRC} ${ZLIB_INC})

if(MSVC)
  target_compile_options(zlib PUBLIC /wd4996 /wd4267)
else()
  target_compile_options(zlib PUBLIC -Wno-implicit-function-declaration)
endif()