Revision 14eb32985e558b53f71e8a5b1eda63e2ddb8c005 authored by Timur Pocheptsov on 27 March 2014, 07:37:42 UTC, committed by Timur Pocheptsov on 27 March 2014, 07:37:42 UTC
1 parent 7cb3454
CMakeLists.txt
# Build core/clib
# Define all header and source files which are needed
# to build the Core library
# The Core library is build in the main CMakeLists.txt
# of the core subdirectory.
Set(ZipOldHeaders
${CMAKE_CURRENT_SOURCE_DIR}/inc/Bits.h
${CMAKE_CURRENT_SOURCE_DIR}/inc/Tailor.h
${CMAKE_CURRENT_SOURCE_DIR}/inc/ZDeflate.h
${CMAKE_CURRENT_SOURCE_DIR}/inc/ZIP.h
${CMAKE_CURRENT_SOURCE_DIR}/inc/ZTrees.h
${CMAKE_CURRENT_SOURCE_DIR}/inc/Compression.h
)
Set(ZipOldSource
${CMAKE_CURRENT_SOURCE_DIR}/src/ZDeflate.c
${CMAKE_CURRENT_SOURCE_DIR}/src/ZInflate.c
)
Set(ZipNewHeaders
${CMAKE_CURRENT_SOURCE_DIR}/inc/crc32.h
${CMAKE_CURRENT_SOURCE_DIR}/inc/deflate.h
${CMAKE_CURRENT_SOURCE_DIR}/inc/inffast.h
${CMAKE_CURRENT_SOURCE_DIR}/inc/inffixed.h
${CMAKE_CURRENT_SOURCE_DIR}/inc/inflate.h
${CMAKE_CURRENT_SOURCE_DIR}/inc/inftrees.h
${CMAKE_CURRENT_SOURCE_DIR}/inc/trees.h
${CMAKE_CURRENT_SOURCE_DIR}/inc/zconf.h
${CMAKE_CURRENT_SOURCE_DIR}/inc/zlib.h
${CMAKE_CURRENT_SOURCE_DIR}/inc/gzguts.h
${CMAKE_CURRENT_SOURCE_DIR}/inc/zutil.h
)
Set(ZipNewSource
${CMAKE_CURRENT_SOURCE_DIR}/src/adler32.c
${CMAKE_CURRENT_SOURCE_DIR}/src/compress.c
${CMAKE_CURRENT_SOURCE_DIR}/src/crc32.c
${CMAKE_CURRENT_SOURCE_DIR}/src/deflate.c
${CMAKE_CURRENT_SOURCE_DIR}/src/gzclose.c
${CMAKE_CURRENT_SOURCE_DIR}/src/gzlib.c
${CMAKE_CURRENT_SOURCE_DIR}/src/gzread.c
${CMAKE_CURRENT_SOURCE_DIR}/src/gzwrite.c
${CMAKE_CURRENT_SOURCE_DIR}/src/infback.c
${CMAKE_CURRENT_SOURCE_DIR}/src/inffast.c
${CMAKE_CURRENT_SOURCE_DIR}/src/inflate.c
${CMAKE_CURRENT_SOURCE_DIR}/src/inftrees.c
${CMAKE_CURRENT_SOURCE_DIR}/src/trees.c
${CMAKE_CURRENT_SOURCE_DIR}/src/uncompr.c
${CMAKE_CURRENT_SOURCE_DIR}/src/zutil.c
)
# Depending on the system either the old and the new
# or only the old compression is build
if(builtin_zlib)
set(ZLIB_HEADERS ${ZipNewHeaders} ${ZipOldHeaders})
set(ZLIB_SRCS ${ZipNewSource} ${ZipOldSource} ${CMAKE_CURRENT_SOURCE_DIR}/src/Compression.cxx)
else()
set(ZLIB_HEADERS ${ZipOldHeaders})
set(ZLIB_SRCS ${ZipOldSource} ${CMAKE_CURRENT_SOURCE_DIR}/src/Compression.cxx)
endif()
# Define all the header files which should be installed when
# doing a "make install"
install(FILES ${ZLIB_HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
set_property(GLOBAL APPEND PROPERTY ROOT_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/inc)
# Add all source files of this subdirectory to the source files
# neede to build the Core library
# Variables are only defined in this directory-. Some of the
# variables are needed in the parent scope so they are exported
# to the parent scope
list(APPEND LibCore_SRCS ${ZLIB_SRCS})
list(APPEND LibCore_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/inc)
set(LibCore_SRCS ${LibCore_SRCS} PARENT_SCOPE)
set(LibCore_INCLUDE_DIRS ${LibCore_INCLUDE} PARENT_SCOPE)
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...