mirror of
https://github.com/reactos/reactos.git
synced 2025-05-17 16:27:00 +00:00
31 lines
626 B
CMake
31 lines
626 B
CMake
|
|
add_definitions(-DNO_VIZ)
|
|
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/zlib)
|
|
|
|
list(APPEND SOLO_SOURCE
|
|
adler32.c
|
|
crc32.c
|
|
deflate.c
|
|
inffast.c
|
|
inflate.c
|
|
inftrees.c
|
|
trees.c
|
|
zutil.c)
|
|
|
|
list(APPEND SOURCE
|
|
compress.c
|
|
gzclose.c
|
|
gzlib.c
|
|
gzread.c
|
|
gzwrite.c
|
|
infback.c
|
|
uncompr.c)
|
|
|
|
if(CMAKE_CROSSCOMPILING)
|
|
add_library(zlib ${SOURCE} ${SOLO_SOURCE})
|
|
add_library(zlib_solo ${SOLO_SOURCE})
|
|
add_target_compile_definitions(zlib_solo Z_SOLO)
|
|
else()
|
|
add_library(zlibhost ${SOLO_SOURCE})
|
|
add_target_compile_definitions(zlibhost Z_SOLO)
|
|
endif()
|