comparison Resources/CMake/ZlibConfiguration.cmake @ 672:670dd1f2edab

improvements to cmake
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 19 Nov 2013 15:57:28 +0100
parents 6b9d09cc9e9d
children ee0d5abf7958
comparison
equal deleted inserted replaced
671:7131193b0e4b 672:670dd1f2edab
2 list(APPEND THIRD_PARTY_SOURCES 2 list(APPEND THIRD_PARTY_SOURCES
3 ${ORTHANC_ROOT}/Resources/minizip/ioapi.c 3 ${ORTHANC_ROOT}/Resources/minizip/ioapi.c
4 ${ORTHANC_ROOT}/Resources/minizip/zip.c 4 ${ORTHANC_ROOT}/Resources/minizip/zip.c
5 ) 5 )
6 6
7 if (${STATIC_BUILD}) 7 if (STATIC_BUILD OR NOT USE_SYSTEM_ZLIB)
8 SET(ZLIB_SOURCES_DIR ${CMAKE_BINARY_DIR}/zlib-1.2.7) 8 SET(ZLIB_SOURCES_DIR ${CMAKE_BINARY_DIR}/zlib-1.2.7)
9 DownloadPackage( 9 DownloadPackage(
10 "60df6a37c56e7c1366cca812414f7b85" 10 "60df6a37c56e7c1366cca812414f7b85"
11 "http://www.montefiore.ulg.ac.be/~jodogne/Orthanc/ThirdPartyDownloads/zlib-1.2.7.tar.gz" 11 "http://www.montefiore.ulg.ac.be/~jodogne/Orthanc/ThirdPartyDownloads/zlib-1.2.7.tar.gz"
12 "${ZLIB_SOURCES_DIR}") 12 "${ZLIB_SOURCES_DIR}")