2016-02-06 02:19:29 +00:00
|
|
|
cmake_minimum_required( VERSION 2.8.7 )
|
2009-03-10 23:07:37 +00:00
|
|
|
|
2013-10-12 04:24:04 +00:00
|
|
|
make_release_only()
|
|
|
|
|
2014-06-25 23:23:41 +00:00
|
|
|
if( ZD_CMAKE_COMPILER_IS_GNUC_COMPATIBLE )
|
2011-06-12 19:17:21 +00:00
|
|
|
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -fomit-frame-pointer" )
|
2016-02-06 02:19:29 +00:00
|
|
|
endif()
|
2009-03-10 23:07:37 +00:00
|
|
|
|
|
|
|
add_definitions( -DBZ_NO_STDIO )
|
2019-05-15 14:58:28 +00:00
|
|
|
add_library( bz2 STATIC
|
2009-03-10 23:07:37 +00:00
|
|
|
blocksort.c
|
|
|
|
bzlib.c
|
|
|
|
compress.c
|
|
|
|
crctable.c
|
|
|
|
decompress.c
|
|
|
|
huffman.c
|
|
|
|
randtable.c )
|
2009-05-25 20:58:59 +00:00
|
|
|
target_link_libraries( bz2 )
|