2009-03-10 23:07:37 +00:00
|
|
|
cmake_minimum_required( VERSION 2.4 )
|
|
|
|
|
2013-06-23 16:37:13 +00:00
|
|
|
if( "${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_C_COMPILER_ID}" STREQUAL "Clang" )
|
2011-06-12 19:17:21 +00:00
|
|
|
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -fomit-frame-pointer" )
|
2013-06-23 16:37:13 +00:00
|
|
|
endif( "${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_C_COMPILER_ID}" STREQUAL "Clang" )
|
2009-03-10 23:07:37 +00:00
|
|
|
|
|
|
|
set( LZMA_FILES
|
2009-04-15 03:58:10 +00:00
|
|
|
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
|
2009-03-10 23:07:37 +00:00
|
|
|
C/Alloc.c
|
2009-04-15 03:58:10 +00:00
|
|
|
C/Bcj2.c
|
|
|
|
C/Bra86.c
|
2009-03-10 23:07:37 +00:00
|
|
|
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 )
|