1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
set(miniz_sources source/libraries/miniz/miniz.c ) add_library(miniz STATIC ${miniz_sources}) target_compile_definitions(miniz PUBLIC MINIZ_NO_ARCHIVE_APIS=1 MINIZ_NO_STDIO=1 MINIZ_NO_MALLOC=1 ) if (NOT MSVC) target_compile_options(miniz PRIVATE -Wno-cast-align -Wno-cast-qual ) endif (NOT MSVC)