annotate Resources/CMake/ZlibConfiguration.cmake @ 72:0d562da696be Orthanc-0.2.0

close
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 29 Apr 2013 12:54:39 +0200
parents 3a584803783e
children 0ec5e2e327b1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
1 if (${STATIC_BUILD})
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
2 SET(ZLIB_SOURCES_DIR ${CMAKE_BINARY_DIR}/zlib-1.2.7)
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
3 DownloadPackage("http://zlib.net/zlib-1.2.7.tar.gz" "${ZLIB_SOURCES_DIR}" "${ZLIB_PRELOADED}" "")
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
4
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
5 include_directories(
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
6 ${ZLIB_SOURCES_DIR}
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
7 )
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
8
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
9 list(APPEND THIRD_PARTY_SOURCES
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
10 ${ZLIB_SOURCES_DIR}/adler32.c
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
11 ${ZLIB_SOURCES_DIR}/compress.c
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
12 ${ZLIB_SOURCES_DIR}/crc32.c
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
13 ${ZLIB_SOURCES_DIR}/deflate.c
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
14 ${ZLIB_SOURCES_DIR}/gzclose.c
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
15 ${ZLIB_SOURCES_DIR}/gzlib.c
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
16 ${ZLIB_SOURCES_DIR}/gzread.c
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
17 ${ZLIB_SOURCES_DIR}/gzwrite.c
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
18 ${ZLIB_SOURCES_DIR}/infback.c
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
19 ${ZLIB_SOURCES_DIR}/inffast.c
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
20 ${ZLIB_SOURCES_DIR}/inflate.c
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
21 ${ZLIB_SOURCES_DIR}/inftrees.c
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
22 ${ZLIB_SOURCES_DIR}/trees.c
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
23 ${ZLIB_SOURCES_DIR}/uncompr.c
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
24 ${ZLIB_SOURCES_DIR}/zutil.c
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
25 )
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
26
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
27 source_group(ThirdParty\\ZLib REGULAR_EXPRESSION ${ZLIB_SOURCES_DIR}/.*)
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
28
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
29 else()
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
30 include(FindZLIB)
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
31 include_directories(${ZLIB_INCLUDE_DIRS})
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
32 link_libraries(${ZLIB_LIBRARIES})
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
33 endif()