Mercurial > hg > orthanc-webviewer
comparison Resources/CMake/LibJpegConfiguration.cmake @ 0:02f7a0400a91
initial commit
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 25 Feb 2015 13:45:35 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:02f7a0400a91 |
---|---|
1 # Orthanc - A Lightweight, RESTful DICOM Store | |
2 # Copyright (C) 2012-2015 Sebastien Jodogne, Medical Physics | |
3 # Department, University Hospital of Liege, Belgium | |
4 # | |
5 # This program is free software: you can redistribute it and/or | |
6 # modify it under the terms of the GNU Affero General Public License | |
7 # as published by the Free Software Foundation, either version 3 of | |
8 # the License, or (at your option) any later version. | |
9 # | |
10 # This program is distributed in the hope that it will be useful, but | |
11 # WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
13 # Affero General Public License for more details. | |
14 # | |
15 # You should have received a copy of the GNU Affero General Public License | |
16 # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
17 | |
18 | |
19 if (STATIC_BUILD OR NOT USE_SYSTEM_LIBJPEG) | |
20 set(LIBJPEG_SOURCES_DIR ${CMAKE_BINARY_DIR}/jpeg-9a) | |
21 DownloadPackage( | |
22 "3353992aecaee1805ef4109aadd433e7" | |
23 "http://www.montefiore.ulg.ac.be/~jodogne/Orthanc/ThirdPartyDownloads/jpegsrc.v9a.tar.gz" | |
24 "${LIBJPEG_SOURCES_DIR}") | |
25 | |
26 include_directories( | |
27 ${LIBJPEG_SOURCES_DIR}/ | |
28 ) | |
29 | |
30 list(APPEND LIBJPEG_SOURCES | |
31 ${LIBJPEG_SOURCES_DIR}/jaricom.c | |
32 ${LIBJPEG_SOURCES_DIR}/jcapimin.c | |
33 ${LIBJPEG_SOURCES_DIR}/jcapistd.c | |
34 ${LIBJPEG_SOURCES_DIR}/jcarith.c | |
35 ${LIBJPEG_SOURCES_DIR}/jccoefct.c | |
36 ${LIBJPEG_SOURCES_DIR}/jccolor.c | |
37 ${LIBJPEG_SOURCES_DIR}/jcdctmgr.c | |
38 ${LIBJPEG_SOURCES_DIR}/jchuff.c | |
39 ${LIBJPEG_SOURCES_DIR}/jcinit.c | |
40 ${LIBJPEG_SOURCES_DIR}/jcmarker.c | |
41 ${LIBJPEG_SOURCES_DIR}/jcmaster.c | |
42 ${LIBJPEG_SOURCES_DIR}/jcomapi.c | |
43 ${LIBJPEG_SOURCES_DIR}/jcparam.c | |
44 ${LIBJPEG_SOURCES_DIR}/jcprepct.c | |
45 ${LIBJPEG_SOURCES_DIR}/jcsample.c | |
46 ${LIBJPEG_SOURCES_DIR}/jctrans.c | |
47 ${LIBJPEG_SOURCES_DIR}/jdapimin.c | |
48 ${LIBJPEG_SOURCES_DIR}/jdapistd.c | |
49 ${LIBJPEG_SOURCES_DIR}/jdarith.c | |
50 ${LIBJPEG_SOURCES_DIR}/jdatadst.c | |
51 ${LIBJPEG_SOURCES_DIR}/jdatasrc.c | |
52 ${LIBJPEG_SOURCES_DIR}/jdcoefct.c | |
53 ${LIBJPEG_SOURCES_DIR}/jdcolor.c | |
54 ${LIBJPEG_SOURCES_DIR}/jddctmgr.c | |
55 ${LIBJPEG_SOURCES_DIR}/jdhuff.c | |
56 ${LIBJPEG_SOURCES_DIR}/jdinput.c | |
57 ${LIBJPEG_SOURCES_DIR}/jcmainct.c | |
58 ${LIBJPEG_SOURCES_DIR}/jdmainct.c | |
59 ${LIBJPEG_SOURCES_DIR}/jdmarker.c | |
60 ${LIBJPEG_SOURCES_DIR}/jdmaster.c | |
61 ${LIBJPEG_SOURCES_DIR}/jdmerge.c | |
62 ${LIBJPEG_SOURCES_DIR}/jdpostct.c | |
63 ${LIBJPEG_SOURCES_DIR}/jdsample.c | |
64 ${LIBJPEG_SOURCES_DIR}/jdtrans.c | |
65 ${LIBJPEG_SOURCES_DIR}/jerror.c | |
66 ${LIBJPEG_SOURCES_DIR}/jfdctflt.c | |
67 ${LIBJPEG_SOURCES_DIR}/jfdctfst.c | |
68 ${LIBJPEG_SOURCES_DIR}/jfdctint.c | |
69 ${LIBJPEG_SOURCES_DIR}/jidctflt.c | |
70 ${LIBJPEG_SOURCES_DIR}/jidctfst.c | |
71 ${LIBJPEG_SOURCES_DIR}/jidctint.c | |
72 #${LIBJPEG_SOURCES_DIR}/jmemansi.c | |
73 #${LIBJPEG_SOURCES_DIR}/jmemdos.c | |
74 #${LIBJPEG_SOURCES_DIR}/jmemmac.c | |
75 ${LIBJPEG_SOURCES_DIR}/jmemmgr.c | |
76 #${LIBJPEG_SOURCES_DIR}/jmemname.c | |
77 ${LIBJPEG_SOURCES_DIR}/jmemnobs.c | |
78 ${LIBJPEG_SOURCES_DIR}/jquant1.c | |
79 ${LIBJPEG_SOURCES_DIR}/jquant2.c | |
80 ${LIBJPEG_SOURCES_DIR}/jutils.c | |
81 | |
82 # ${LIBJPEG_SOURCES_DIR}/rdbmp.c | |
83 # ${LIBJPEG_SOURCES_DIR}/rdcolmap.c | |
84 # ${LIBJPEG_SOURCES_DIR}/rdgif.c | |
85 # ${LIBJPEG_SOURCES_DIR}/rdppm.c | |
86 # ${LIBJPEG_SOURCES_DIR}/rdrle.c | |
87 # ${LIBJPEG_SOURCES_DIR}/rdswitch.c | |
88 # ${LIBJPEG_SOURCES_DIR}/rdtarga.c | |
89 # ${LIBJPEG_SOURCES_DIR}/transupp.c | |
90 # ${LIBJPEG_SOURCES_DIR}/wrbmp.c | |
91 # ${LIBJPEG_SOURCES_DIR}/wrgif.c | |
92 # ${LIBJPEG_SOURCES_DIR}/wrppm.c | |
93 # ${LIBJPEG_SOURCES_DIR}/wrrle.c | |
94 # ${LIBJPEG_SOURCES_DIR}/wrtarga.c | |
95 ) | |
96 | |
97 configure_file( | |
98 ${LIBJPEG_SOURCES_DIR}/jconfig.txt | |
99 ${LIBJPEG_SOURCES_DIR}/jconfig.h COPYONLY | |
100 ) | |
101 | |
102 else() | |
103 link_libraries(jpeg) | |
104 endif() |