pcsx2/3rdparty/bzip2/CMakeLists.txt

42 lines
904 B
CMake

# bzip2 library
# library name
set(bzip2Name bzip2)
# Debug - Build
if(CMAKE_BUILD_TYPE STREQUAL Debug)
# add defines
add_definitions(-g -O0 -march=athlon-xp -march=prescott)
endif(CMAKE_BUILD_TYPE STREQUAL Debug)
# Devel - Build
if(CMAKE_BUILD_TYPE STREQUAL Devel)
# add defines
add_definitions(-O1 -g -W -march=athlon-xp -march=prescott)
endif(CMAKE_BUILD_TYPE STREQUAL Devel)
# Release - Build
if(CMAKE_BUILD_TYPE STREQUAL Release)
# add defines
add_definitions(-fexpensive-optimizations -O3 -Os -W -march=athlon-xp -march=prescott)
endif(CMAKE_BUILD_TYPE STREQUAL Release)
# variable with all sources of this library
set(bzip2Sources
blocksort.c
bzlib.c
compress.c
crctable.c
decompress.c
huffman.c
randtable.c)
# variable with all headers of this library
set(bzip2Headers
bzlib.h
bzlib_private.h)
# add library
add_library(${bzip2Name} STATIC ${bzip2Sources} ${bzip2Headers})