annotate Resources/CMake/ZlibConfiguration.cmake @ 656:08eca5d86aad

fixes to cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 04 Nov 2013 11:19:31 +0100
parents 6b9d09cc9e9d
children 670dd1f2edab
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
89
74156c8b6f00 dynamic zlib
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 81
diff changeset
1 # This is the minizip distribution to create ZIP files
74156c8b6f00 dynamic zlib
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 81
diff changeset
2 list(APPEND THIRD_PARTY_SOURCES
506
6e4bd06c17c5 the wrapper is working
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 411
diff changeset
3 ${ORTHANC_ROOT}/Resources/minizip/ioapi.c
6e4bd06c17c5 the wrapper is working
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 411
diff changeset
4 ${ORTHANC_ROOT}/Resources/minizip/zip.c
89
74156c8b6f00 dynamic zlib
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 81
diff changeset
5 )
8
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
6
89
74156c8b6f00 dynamic zlib
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 81
diff changeset
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)
411
5f6d75cd4b46 md5 of third party downlaods
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 382
diff changeset
9 DownloadPackage(
5f6d75cd4b46 md5 of third party downlaods
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 382
diff changeset
10 "60df6a37c56e7c1366cca812414f7b85"
5f6d75cd4b46 md5 of third party downlaods
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 382
diff changeset
11 "http://www.montefiore.ulg.ac.be/~jodogne/Orthanc/ThirdPartyDownloads/zlib-1.2.7.tar.gz"
553
27d32fc6209a simplifications to cmake, use a digest of boost 1.54.0 thanks bcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 411
diff changeset
12 "${ZLIB_SOURCES_DIR}")
102
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 include_directories(
7593b57dc1bf switch to google log
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 89
diff changeset
15 ${ZLIB_SOURCES_DIR}
7593b57dc1bf switch to google log
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 89
diff changeset
16 )
7593b57dc1bf switch to google log
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 89
diff changeset
17
8
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
18 list(APPEND THIRD_PARTY_SOURCES
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
19 ${ZLIB_SOURCES_DIR}/adler32.c
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
20 ${ZLIB_SOURCES_DIR}/compress.c
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
21 ${ZLIB_SOURCES_DIR}/crc32.c
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
22 ${ZLIB_SOURCES_DIR}/deflate.c
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
23 ${ZLIB_SOURCES_DIR}/gzclose.c
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
24 ${ZLIB_SOURCES_DIR}/gzlib.c
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
25 ${ZLIB_SOURCES_DIR}/gzread.c
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
26 ${ZLIB_SOURCES_DIR}/gzwrite.c
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
27 ${ZLIB_SOURCES_DIR}/infback.c
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
28 ${ZLIB_SOURCES_DIR}/inffast.c
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
29 ${ZLIB_SOURCES_DIR}/inflate.c
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
30 ${ZLIB_SOURCES_DIR}/inftrees.c
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
31 ${ZLIB_SOURCES_DIR}/trees.c
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
32 ${ZLIB_SOURCES_DIR}/uncompr.c
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
33 ${ZLIB_SOURCES_DIR}/zutil.c
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
34 )
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
35
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
36 else()
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
37 include(FindZLIB)
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
38 include_directories(${ZLIB_INCLUDE_DIRS})
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
39 link_libraries(${ZLIB_LIBRARIES})
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
40 endif()
89
74156c8b6f00 dynamic zlib
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 81
diff changeset
41
74156c8b6f00 dynamic zlib
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 81
diff changeset
42 source_group(ThirdParty\\ZLib REGULAR_EXPRESSION ${ZLIB_SOURCES_DIR}/.*)