Mercurial > hg > orthanc
annotate Resources/CMake/ZlibConfiguration.cmake @ 2123:1cf093cbdad8
cleaning up
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 07 Nov 2016 11:51:40 +0100 |
parents | 0108ac01fc8e |
children | 8b51b133bb8b |
rev | line source |
---|---|
735 | 1 if (STATIC_BUILD OR NOT USE_SYSTEM_ZLIB) |
2 SET(ZLIB_SOURCES_DIR ${CMAKE_BINARY_DIR}/zlib-1.2.7) | |
1537
fbf763bb1fa3
error detection in patches
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1493
diff
changeset
|
3 SET(ZLIB_URL "http://www.montefiore.ulg.ac.be/~jodogne/Orthanc/ThirdPartyDownloads/zlib-1.2.7.tar.gz") |
fbf763bb1fa3
error detection in patches
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1493
diff
changeset
|
4 SET(ZLIB_MD5 "60df6a37c56e7c1366cca812414f7b85") |
fbf763bb1fa3
error detection in patches
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1493
diff
changeset
|
5 |
fbf763bb1fa3
error detection in patches
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1493
diff
changeset
|
6 DownloadPackage(${ZLIB_MD5} ${ZLIB_URL} "${ZLIB_SOURCES_DIR}") |
735 | 7 |
8 include_directories( | |
9 ${ZLIB_SOURCES_DIR} | |
10 ) | |
11 | |
1414 | 12 list(APPEND ZLIB_SOURCES |
735 | 13 ${ZLIB_SOURCES_DIR}/adler32.c |
14 ${ZLIB_SOURCES_DIR}/compress.c | |
15 ${ZLIB_SOURCES_DIR}/crc32.c | |
16 ${ZLIB_SOURCES_DIR}/deflate.c | |
17 ${ZLIB_SOURCES_DIR}/gzclose.c | |
18 ${ZLIB_SOURCES_DIR}/gzlib.c | |
19 ${ZLIB_SOURCES_DIR}/gzread.c | |
20 ${ZLIB_SOURCES_DIR}/gzwrite.c | |
21 ${ZLIB_SOURCES_DIR}/infback.c | |
22 ${ZLIB_SOURCES_DIR}/inffast.c | |
23 ${ZLIB_SOURCES_DIR}/inflate.c | |
24 ${ZLIB_SOURCES_DIR}/inftrees.c | |
25 ${ZLIB_SOURCES_DIR}/trees.c | |
26 ${ZLIB_SOURCES_DIR}/uncompr.c | |
27 ${ZLIB_SOURCES_DIR}/zutil.c | |
28 ) | |
29 | |
2113
0108ac01fc8e
added source_group directives for MSVC
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1537
diff
changeset
|
30 source_group(ThirdParty\\zlib REGULAR_EXPRESSION ${ZLIB_SOURCES_DIR}/.*) |
0108ac01fc8e
added source_group directives for MSVC
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1537
diff
changeset
|
31 |
735 | 32 else() |
33 include(FindZLIB) | |
34 include_directories(${ZLIB_INCLUDE_DIRS}) | |
35 link_libraries(${ZLIB_LIBRARIES}) | |
36 endif() |