mirror of
https://github.com/mcneel/opennurbs.git
synced 2026-04-17 19:56:02 +08:00
Sync changes from upstream repository
Co-authored-by: Andrew Le Bihan <andy@mcneel.com> Co-authored-by: croudyj <croudyj@gmail.com> Co-authored-by: Dale Lear <dalelear@mcneel.com> Co-authored-by: David Eränen <david.eranen@mcneel.com> Co-authored-by: Giulio Piacentino <giulio@mcneel.com> Co-authored-by: Greg Arden <greg@mcneel.com> Co-authored-by: Jussi Aaltonen <jussi@mcneel.com> Co-authored-by: kike-garbo <kike@mcneel.com> Co-authored-by: Mikko Oksanen <mikko@mcneel.com> Co-authored-by: Pierre Cuvilliers <pierre@mcneel.com> Co-authored-by: sodermax <max.soderstrom@mcneel.com> Co-authored-by: steve <steve@mcneel.com> Co-authored-by: Steve Baer <steve@mcneel.com> Co-authored-by: Will Pearson <will@mcneel.com>
This commit is contained in:
49
zlib/CMakeLists.txt
Normal file
49
zlib/CMakeLists.txt
Normal file
@@ -0,0 +1,49 @@
|
||||
cmake_minimum_required (VERSION 3.4)
|
||||
project( zlib C)
|
||||
|
||||
|
||||
set( INCLUDE_DIRS
|
||||
.
|
||||
)
|
||||
|
||||
set( PROJECT_HEADERS
|
||||
crc32.h
|
||||
deflate.h
|
||||
inffast.h
|
||||
inffixed.h
|
||||
inflate.h
|
||||
inftrees.h
|
||||
trees.h
|
||||
zconf.h
|
||||
zlib.h
|
||||
zutil.h
|
||||
)
|
||||
|
||||
set( SOURCES
|
||||
adler32.c
|
||||
compress.c
|
||||
crc32.c
|
||||
deflate.c
|
||||
infback.c
|
||||
inffast.c
|
||||
inflate.c
|
||||
inftrees.c
|
||||
trees.c
|
||||
uncompr.c
|
||||
zutil.c
|
||||
)
|
||||
set(CMAKE_POSITION_INDEPENDENT_CODE ON) # -fPIC
|
||||
add_library( zlib STATIC
|
||||
${SOURCES}
|
||||
${PROJECT_HEADERS}
|
||||
${RESOURCES}
|
||||
)
|
||||
target_compile_definitions(zlib PRIVATE Z_PREFIX MY_ZCALLOC)
|
||||
|
||||
target_include_directories( zlib
|
||||
PUBLIC
|
||||
.
|
||||
)
|
||||
|
||||
install( TARGETS zlib DESTINATION "lib")
|
||||
install( FILES DESTINATION "include/zlib")
|
||||
Reference in New Issue
Block a user