Mercurial > hg > orthanc
annotate Resources/CMake/ZlibConfiguration.cmake @ 111:0fc3b69c0357
preparing for release
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 04 Oct 2012 12:45:24 +0200 |
parents | 7593b57dc1bf |
children | b45bc565d82a 61ab5fa36754 |
rev | line source |
---|---|
89 | 1 # This is the minizip distribution to create ZIP files |
2 list(APPEND THIRD_PARTY_SOURCES | |
102
7593b57dc1bf
switch to google log
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
89
diff
changeset
|
3 ${CMAKE_SOURCE_DIR}/Resources/minizip/ioapi.c |
7593b57dc1bf
switch to google log
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
89
diff
changeset
|
4 ${CMAKE_SOURCE_DIR}/Resources/minizip/zip.c |
89 | 5 ) |
8 | 6 |
89 | 7 if (${STATIC_BUILD}) |
102
7593b57dc1bf
switch to google log
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
89
diff
changeset
|
8 SET(ZLIB_SOURCES_DIR ${CMAKE_BINARY_DIR}/zlib-1.2.7) |
7593b57dc1bf
switch to google log
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
89
diff
changeset
|
9 DownloadPackage("http://zlib.net/zlib-1.2.7.tar.gz" "${ZLIB_SOURCES_DIR}" "${ZLIB_PRELOADED}" "") |
7593b57dc1bf
switch to google log
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
89
diff
changeset
|
10 |
7593b57dc1bf
switch to google log
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
89
diff
changeset
|
11 include_directories( |
7593b57dc1bf
switch to google log
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
89
diff
changeset
|
12 ${ZLIB_SOURCES_DIR} |
7593b57dc1bf
switch to google log
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
89
diff
changeset
|
13 ) |
7593b57dc1bf
switch to google log
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
89
diff
changeset
|
14 |
8 | 15 list(APPEND THIRD_PARTY_SOURCES |
16 ${ZLIB_SOURCES_DIR}/adler32.c | |
17 ${ZLIB_SOURCES_DIR}/compress.c | |
18 ${ZLIB_SOURCES_DIR}/crc32.c | |
19 ${ZLIB_SOURCES_DIR}/deflate.c | |
20 ${ZLIB_SOURCES_DIR}/gzclose.c | |
21 ${ZLIB_SOURCES_DIR}/gzlib.c | |
22 ${ZLIB_SOURCES_DIR}/gzread.c | |
23 ${ZLIB_SOURCES_DIR}/gzwrite.c | |
24 ${ZLIB_SOURCES_DIR}/infback.c | |
25 ${ZLIB_SOURCES_DIR}/inffast.c | |
26 ${ZLIB_SOURCES_DIR}/inflate.c | |
27 ${ZLIB_SOURCES_DIR}/inftrees.c | |
28 ${ZLIB_SOURCES_DIR}/trees.c | |
29 ${ZLIB_SOURCES_DIR}/uncompr.c | |
30 ${ZLIB_SOURCES_DIR}/zutil.c | |
31 ) | |
32 | |
33 else() | |
34 include(FindZLIB) | |
35 include_directories(${ZLIB_INCLUDE_DIRS}) | |
36 link_libraries(${ZLIB_LIBRARIES}) | |
37 endif() | |
89 | 38 |
39 source_group(ThirdParty\\ZLib REGULAR_EXPRESSION ${ZLIB_SOURCES_DIR}/.*) |