mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-23 04:22:34 +00:00
11838ef875
This makes sure the internal versions of these libraries bundled with the GZDoom source code is used. This prevents the system from building GZDoom for dynamic linking with incompatible external libraries (see <https://forum.zdoom.org/viewtopic.php?f=2&t=64633>).
38 lines
699 B
CMake
38 lines
699 B
CMake
cmake_minimum_required( VERSION 2.8.7 )
|
|
|
|
make_release_only()
|
|
|
|
if( ZD_CMAKE_COMPILER_IS_GNUC_COMPATIBLE )
|
|
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -fomit-frame-pointer" )
|
|
endif()
|
|
|
|
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_7ZIP_PPMD_SUPPPORT" )
|
|
|
|
set( LZMA_FILES
|
|
C/7zArcIn.c
|
|
C/7zBuf.c
|
|
C/7zCrc.c
|
|
C/7zCrcOpt.c
|
|
C/7zDec.c
|
|
C/7zStream.c
|
|
C/Bcj2.c
|
|
C/Bra.c
|
|
C/Bra86.c
|
|
C/BraIA64.c
|
|
C/CpuArch.c
|
|
C/Delta.c
|
|
C/LzFind.c
|
|
C/Lzma2Dec.c
|
|
C/LzmaDec.c
|
|
C/LzmaEnc.c
|
|
C/Ppmd7.c
|
|
C/Ppmd7Dec.c )
|
|
|
|
if( WIN32 )
|
|
set( LZMA_FILES ${LZMA_FILES} C/LzFindMt.c C/Threads.c )
|
|
else()
|
|
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_7ZIP_ST" )
|
|
endif()
|
|
|
|
add_library( lzma STATIC ${LZMA_FILES} )
|
|
target_link_libraries( lzma )
|