Files
boost_beast/test/zlib/CMakeLists.txt
T
Vinnie Falco 9ff1a27160 Add zlib module:
The zlib module is a port of ZLib's raw deflate
algorithm to header-only C++11.
2016-11-15 12:04:59 -05:00

48 lines
1.0 KiB
CMake

# Part of Beast
GroupSources(extras/beast extras)
GroupSources(include/beast beast)
GroupSources(test/zlib "/")
set(ZLIB_SOURCES
zlib-1.2.8/crc32.h
zlib-1.2.8/deflate.h
zlib-1.2.8/inffast.h
zlib-1.2.8/inffixed.h
zlib-1.2.8/inflate.h
zlib-1.2.8/inftrees.h
zlib-1.2.8/trees.h
zlib-1.2.8/zlib.h
zlib-1.2.8/zutil.h
zlib-1.2.8/adler32.c
zlib-1.2.8/compress.c
zlib-1.2.8/crc32.c
zlib-1.2.8/deflate.c
zlib-1.2.8/infback.c
zlib-1.2.8/inffast.c
zlib-1.2.8/inflate.c
zlib-1.2.8/inftrees.c
zlib-1.2.8/trees.c
zlib-1.2.8/uncompr.c
zlib-1.2.8/zutil.c
)
if (MSVC)
set_source_files_properties (${ZLIB_SOURCES} PROPERTIES COMPILE_FLAGS "/wd4127 /wd4131 /wd4244")
endif()
add_executable (zlib-tests
${BEAST_INCLUDES}
${EXTRAS_INCLUDES}
${ZLIB_SOURCES}
../../extras/beast/unit_test/main.cpp
ztest.hpp
deflate_stream.cpp
error.cpp
inflate_stream.cpp
)
if (NOT WIN32)
target_link_libraries(zlib-tests ${Boost_LIBRARIES} Threads::Threads)
endif()