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: 503e0f1a033740258ef857d2faa469564be309a8 (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 "SQLiteCpp" static library
add_library(zlib OBJECT ${ZLIB_SRC} ${ZLIB_INC})

if(MSVC)
  target_compile_options(zlib PUBLIC /wd"4996" /wd"4267")
else()
  target_compile_options(zlib PUBLIC -Wno-implicit-function-declaration)
endif()