Mercurial > hg > orthanc
annotate OrthancFramework/Resources/CMake/LibJpegConfiguration.cmake @ 4341:977c2759eb0a
Archive/media jobs report the size of the created ZIP file in content field "ArchiveSizeMB"
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 03 Dec 2020 18:15:47 +0100 |
parents | 304842a0d152 |
children | d9473bd5ed43 |
rev | line source |
---|---|
4120
304842a0d152
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4044
diff
changeset
|
1 # Orthanc - A Lightweight, RESTful DICOM Store |
304842a0d152
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4044
diff
changeset
|
2 # Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics |
304842a0d152
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4044
diff
changeset
|
3 # Department, University Hospital of Liege, Belgium |
304842a0d152
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4044
diff
changeset
|
4 # Copyright (C) 2017-2020 Osimis S.A., Belgium |
304842a0d152
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4044
diff
changeset
|
5 # |
304842a0d152
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4044
diff
changeset
|
6 # This program is free software: you can redistribute it and/or |
304842a0d152
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4044
diff
changeset
|
7 # modify it under the terms of the GNU Lesser General Public License |
304842a0d152
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4044
diff
changeset
|
8 # as published by the Free Software Foundation, either version 3 of |
304842a0d152
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4044
diff
changeset
|
9 # the License, or (at your option) any later version. |
304842a0d152
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4044
diff
changeset
|
10 # |
304842a0d152
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4044
diff
changeset
|
11 # This program is distributed in the hope that it will be useful, but |
304842a0d152
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4044
diff
changeset
|
12 # WITHOUT ANY WARRANTY; without even the implied warranty of |
304842a0d152
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4044
diff
changeset
|
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
304842a0d152
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4044
diff
changeset
|
14 # Lesser General Public License for more details. |
304842a0d152
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4044
diff
changeset
|
15 # |
304842a0d152
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4044
diff
changeset
|
16 # You should have received a copy of the GNU Lesser General Public |
304842a0d152
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4044
diff
changeset
|
17 # License along with this program. If not, see |
304842a0d152
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4044
diff
changeset
|
18 # <http://www.gnu.org/licenses/>. |
304842a0d152
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4044
diff
changeset
|
19 |
304842a0d152
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4044
diff
changeset
|
20 |
1602 | 21 if (STATIC_BUILD OR NOT USE_SYSTEM_LIBJPEG) |
3286
2b547eaed193
upgrade to libjpeg 9c
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3133
diff
changeset
|
22 set(LIBJPEG_SOURCES_DIR ${CMAKE_BINARY_DIR}/jpeg-9c) |
1602 | 23 DownloadPackage( |
3286
2b547eaed193
upgrade to libjpeg 9c
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3133
diff
changeset
|
24 "93c62597eeef81a84d988bccbda1e990" |
2b547eaed193
upgrade to libjpeg 9c
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3133
diff
changeset
|
25 "http://orthanc.osimis.io/ThirdPartyDownloads/jpegsrc.v9c.tar.gz" |
1602 | 26 "${LIBJPEG_SOURCES_DIR}") |
27 | |
28 include_directories( | |
29 ${LIBJPEG_SOURCES_DIR} | |
30 ) | |
31 | |
32 list(APPEND LIBJPEG_SOURCES | |
33 ${LIBJPEG_SOURCES_DIR}/jaricom.c | |
34 ${LIBJPEG_SOURCES_DIR}/jcapimin.c | |
35 ${LIBJPEG_SOURCES_DIR}/jcapistd.c | |
36 ${LIBJPEG_SOURCES_DIR}/jcarith.c | |
37 ${LIBJPEG_SOURCES_DIR}/jccoefct.c | |
38 ${LIBJPEG_SOURCES_DIR}/jccolor.c | |
39 ${LIBJPEG_SOURCES_DIR}/jcdctmgr.c | |
40 ${LIBJPEG_SOURCES_DIR}/jchuff.c | |
41 ${LIBJPEG_SOURCES_DIR}/jcinit.c | |
42 ${LIBJPEG_SOURCES_DIR}/jcmarker.c | |
43 ${LIBJPEG_SOURCES_DIR}/jcmaster.c | |
44 ${LIBJPEG_SOURCES_DIR}/jcomapi.c | |
45 ${LIBJPEG_SOURCES_DIR}/jcparam.c | |
46 ${LIBJPEG_SOURCES_DIR}/jcprepct.c | |
47 ${LIBJPEG_SOURCES_DIR}/jcsample.c | |
48 ${LIBJPEG_SOURCES_DIR}/jctrans.c | |
49 ${LIBJPEG_SOURCES_DIR}/jdapimin.c | |
50 ${LIBJPEG_SOURCES_DIR}/jdapistd.c | |
51 ${LIBJPEG_SOURCES_DIR}/jdarith.c | |
52 ${LIBJPEG_SOURCES_DIR}/jdatadst.c | |
53 ${LIBJPEG_SOURCES_DIR}/jdatasrc.c | |
54 ${LIBJPEG_SOURCES_DIR}/jdcoefct.c | |
55 ${LIBJPEG_SOURCES_DIR}/jdcolor.c | |
56 ${LIBJPEG_SOURCES_DIR}/jddctmgr.c | |
57 ${LIBJPEG_SOURCES_DIR}/jdhuff.c | |
58 ${LIBJPEG_SOURCES_DIR}/jdinput.c | |
59 ${LIBJPEG_SOURCES_DIR}/jcmainct.c | |
60 ${LIBJPEG_SOURCES_DIR}/jdmainct.c | |
61 ${LIBJPEG_SOURCES_DIR}/jdmarker.c | |
62 ${LIBJPEG_SOURCES_DIR}/jdmaster.c | |
63 ${LIBJPEG_SOURCES_DIR}/jdmerge.c | |
64 ${LIBJPEG_SOURCES_DIR}/jdpostct.c | |
65 ${LIBJPEG_SOURCES_DIR}/jdsample.c | |
66 ${LIBJPEG_SOURCES_DIR}/jdtrans.c | |
67 ${LIBJPEG_SOURCES_DIR}/jerror.c | |
68 ${LIBJPEG_SOURCES_DIR}/jfdctflt.c | |
69 ${LIBJPEG_SOURCES_DIR}/jfdctfst.c | |
70 ${LIBJPEG_SOURCES_DIR}/jfdctint.c | |
71 ${LIBJPEG_SOURCES_DIR}/jidctflt.c | |
72 ${LIBJPEG_SOURCES_DIR}/jidctfst.c | |
73 ${LIBJPEG_SOURCES_DIR}/jidctint.c | |
74 #${LIBJPEG_SOURCES_DIR}/jmemansi.c | |
75 #${LIBJPEG_SOURCES_DIR}/jmemdos.c | |
76 #${LIBJPEG_SOURCES_DIR}/jmemmac.c | |
77 ${LIBJPEG_SOURCES_DIR}/jmemmgr.c | |
78 #${LIBJPEG_SOURCES_DIR}/jmemname.c | |
79 ${LIBJPEG_SOURCES_DIR}/jmemnobs.c | |
80 ${LIBJPEG_SOURCES_DIR}/jquant1.c | |
81 ${LIBJPEG_SOURCES_DIR}/jquant2.c | |
82 ${LIBJPEG_SOURCES_DIR}/jutils.c | |
83 | |
84 # ${LIBJPEG_SOURCES_DIR}/rdbmp.c | |
85 # ${LIBJPEG_SOURCES_DIR}/rdcolmap.c | |
86 # ${LIBJPEG_SOURCES_DIR}/rdgif.c | |
87 # ${LIBJPEG_SOURCES_DIR}/rdppm.c | |
88 # ${LIBJPEG_SOURCES_DIR}/rdrle.c | |
89 # ${LIBJPEG_SOURCES_DIR}/rdswitch.c | |
90 # ${LIBJPEG_SOURCES_DIR}/rdtarga.c | |
91 # ${LIBJPEG_SOURCES_DIR}/transupp.c | |
92 # ${LIBJPEG_SOURCES_DIR}/wrbmp.c | |
93 # ${LIBJPEG_SOURCES_DIR}/wrgif.c | |
94 # ${LIBJPEG_SOURCES_DIR}/wrppm.c | |
95 # ${LIBJPEG_SOURCES_DIR}/wrrle.c | |
96 # ${LIBJPEG_SOURCES_DIR}/wrtarga.c | |
97 ) | |
98 | |
99 configure_file( | |
100 ${LIBJPEG_SOURCES_DIR}/jconfig.txt | |
101 ${LIBJPEG_SOURCES_DIR}/jconfig.h COPYONLY | |
102 ) | |
103 | |
2113
0108ac01fc8e
added source_group directives for MSVC
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1602
diff
changeset
|
104 source_group(ThirdParty\\libjpeg REGULAR_EXPRESSION ${LIBJPEG_SOURCES_DIR}/.*) |
0108ac01fc8e
added source_group directives for MSVC
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1602
diff
changeset
|
105 |
1602 | 106 else() |
107 include(FindJPEG) | |
108 | |
109 if (NOT ${JPEG_FOUND}) | |
110 message(FATAL_ERROR "Unable to find libjpeg") | |
111 endif() | |
112 | |
113 include_directories(${JPEG_INCLUDE_DIR}) | |
114 link_libraries(${JPEG_LIBRARIES}) | |
115 endif() |