build bzip2 in bzip2.cmake

This commit is contained in:
dxl
2020-07-03 16:43:59 +08:00
parent 901daa77fb
commit 73492f1dcd
+13
View File
@@ -0,0 +1,13 @@
get_filename_component(BZIP2_ROOT bzip2 ABSOLUTE)
add_library(pm3rrg_rdv4_bzip2 STATIC
${BZIP2_ROOT}/blocksort.c
${BZIP2_ROOT}/bzlib.c
${BZIP2_ROOT}/compress.c
${BZIP2_ROOT}/crctable.c
${BZIP2_ROOT}/decompress.c
${BZIP2_ROOT}/huffman.c
${BZIP2_ROOT}/randtable.c
)
target_include_directories(pm3rrg_rdv4_bzip2 INTERFACE bzip2)