mirror of
https://github.com/rehlds/rehlds.git
synced 2024-12-29 08:05:50 +03:00
ccd36e765b
build.yml: use container linux86buildtools Minor refactoring
26 lines
448 B
CMake
26 lines
448 B
CMake
cmake_minimum_required(VERSION 3.1)
|
|
project(bzip2 C)
|
|
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g0 -O1 -fno-stack-protector")
|
|
|
|
set(BZIP2_SRCS
|
|
"src/blocksort.c"
|
|
"src/bzlib.c"
|
|
"src/compress.c"
|
|
"src/crctable.c"
|
|
"src/decompress.c"
|
|
"src/huffman.c"
|
|
"src/precompiled.c"
|
|
"src/randtable.c"
|
|
"src/bzlib_private.h"
|
|
)
|
|
|
|
include_directories(
|
|
"include"
|
|
)
|
|
|
|
add_library(bzip2 STATIC ${BZIP2_SRCS})
|
|
set_target_properties(bzip2 PROPERTIES
|
|
COMPILE_FLAGS "-m32"
|
|
)
|