proxmark3/client/deps/zlib.cmake

15 lines
572 B
CMake
Raw Normal View History

2020-05-06 20:45:02 +08:00
add_library(pm3rrg_rdv4_z STATIC
2020-04-16 16:57:53 +08:00
../../common/zlib/deflate.c
../../common/zlib/adler32.c
../../common/zlib/trees.c
../../common/zlib/zutil.c
../../common/zlib/inflate.c
../../common/zlib/inffast.c
../../common/zlib/inftrees.c
)
2020-05-06 20:45:02 +08:00
target_compile_definitions(pm3rrg_rdv4_z PRIVATE Z_SOLO NO_GZIP ZLIB_PM3_TUNED)
2020-05-25 05:23:55 +08:00
target_include_directories(pm3rrg_rdv4_z INTERFACE ../../common/zlib)
target_compile_options(pm3rrg_rdv4_z PRIVATE -Wall -Werror -O3)
2020-05-06 20:45:02 +08:00
set_property(TARGET pm3rrg_rdv4_z PROPERTY POSITION_INDEPENDENT_CODE ON)