Mercurial > hg > orthanc
annotate Resources/CMake/ZlibConfiguration.cmake @ 1472:237d83694d82
avoid public symbols of libpng
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 30 Jul 2015 17:55:12 +0200 |
parents | 0a67a502c90f |
children | 9a1c7293955b |
rev | line source |
---|---|
735 | 1 # This is the minizip distribution to create ZIP files |
1414 | 2 set(ZLIB_SOURCES |
950
8811abd6aec9
move ThirdParty code
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
735
diff
changeset
|
3 ${ORTHANC_ROOT}/Resources/ThirdParty/minizip/ioapi.c |
8811abd6aec9
move ThirdParty code
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
735
diff
changeset
|
4 ${ORTHANC_ROOT}/Resources/ThirdParty/minizip/zip.c |
735 | 5 ) |
6 | |
7 if (STATIC_BUILD OR NOT USE_SYSTEM_ZLIB) | |
8 SET(ZLIB_SOURCES_DIR ${CMAKE_BINARY_DIR}/zlib-1.2.7) | |
9 DownloadPackage( | |
10 "60df6a37c56e7c1366cca812414f7b85" | |
11 "http://www.montefiore.ulg.ac.be/~jodogne/Orthanc/ThirdPartyDownloads/zlib-1.2.7.tar.gz" | |
12 "${ZLIB_SOURCES_DIR}") | |
13 | |
14 include_directories( | |
15 ${ZLIB_SOURCES_DIR} | |
16 ) | |
17 | |
1414 | 18 list(APPEND ZLIB_SOURCES |
735 | 19 ${ZLIB_SOURCES_DIR}/adler32.c |
20 ${ZLIB_SOURCES_DIR}/compress.c | |
21 ${ZLIB_SOURCES_DIR}/crc32.c | |
22 ${ZLIB_SOURCES_DIR}/deflate.c | |
23 ${ZLIB_SOURCES_DIR}/gzclose.c | |
24 ${ZLIB_SOURCES_DIR}/gzlib.c | |
25 ${ZLIB_SOURCES_DIR}/gzread.c | |
26 ${ZLIB_SOURCES_DIR}/gzwrite.c | |
27 ${ZLIB_SOURCES_DIR}/infback.c | |
28 ${ZLIB_SOURCES_DIR}/inffast.c | |
29 ${ZLIB_SOURCES_DIR}/inflate.c | |
30 ${ZLIB_SOURCES_DIR}/inftrees.c | |
31 ${ZLIB_SOURCES_DIR}/trees.c | |
32 ${ZLIB_SOURCES_DIR}/uncompr.c | |
33 ${ZLIB_SOURCES_DIR}/zutil.c | |
34 ) | |
35 | |
36 else() | |
37 include(FindZLIB) | |
38 include_directories(${ZLIB_INCLUDE_DIRS}) | |
39 link_libraries(${ZLIB_LIBRARIES}) | |
40 endif() | |
41 | |
42 source_group(ThirdParty\\ZLib REGULAR_EXPRESSION ${ZLIB_SOURCES_DIR}/.*) |