mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-18 10:21:42 +00:00
e6de6fed3c
I'm sure there are good reasons even GCC doesn't enable them by default when you use -Wall. SVN r3225 (trunk)
30 lines
610 B
CMake
30 lines
610 B
CMake
cmake_minimum_required( VERSION 2.4 )
|
|
|
|
if( CMAKE_COMPILER_IS_GNUC )
|
|
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -fomit-frame-pointer" )
|
|
endif( CMAKE_COMPILER_IS_GNUC )
|
|
|
|
set( LZMA_FILES
|
|
C/Archive/7z/7zDecode.c
|
|
C/Archive/7z/7zExtract.c
|
|
C/Archive/7z/7zHeader.c
|
|
C/Archive/7z/7zIn.c
|
|
C/Archive/7z/7zItem.c
|
|
C/7zBuf.c
|
|
C/7zCrc.c
|
|
C/7zStream.c
|
|
C/Alloc.c
|
|
C/Bcj2.c
|
|
C/Bra86.c
|
|
C/LzFind.c
|
|
C/LzFindMt.c
|
|
C/LzmaDec.c
|
|
C/LzmaEnc.c
|
|
C/LzmaLib.c )
|
|
|
|
if( WIN32 )
|
|
set( LZMA_FILES ${LZMA_FILES} C/Threads.c )
|
|
endif( WIN32 )
|
|
|
|
add_library( lzma ${LZMA_FILES} )
|
|
target_link_libraries( lzma )
|