Mercurial > hg > orthanc
annotate Resources/CMake/LibJpegConfiguration.cmake @ 2926:0bcf46cea4e4
fix for older versions of boost::regex
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 09 Nov 2018 11:55:16 +0100 |
parents | 74d0953a3681 |
children | 0c2a8d5e0097 |
rev | line source |
---|---|
1602 | 1 if (STATIC_BUILD OR NOT USE_SYSTEM_LIBJPEG) |
2 set(LIBJPEG_SOURCES_DIR ${CMAKE_BINARY_DIR}/jpeg-9a) | |
3 DownloadPackage( | |
4 "3353992aecaee1805ef4109aadd433e7" | |
2384 | 5 "http://www.orthanc-server.com/downloads/third-party/jpegsrc.v9a.tar.gz" |
1602 | 6 "${LIBJPEG_SOURCES_DIR}") |
7 | |
8 include_directories( | |
9 ${LIBJPEG_SOURCES_DIR} | |
10 ) | |
11 | |
12 list(APPEND LIBJPEG_SOURCES | |
13 ${LIBJPEG_SOURCES_DIR}/jaricom.c | |
14 ${LIBJPEG_SOURCES_DIR}/jcapimin.c | |
15 ${LIBJPEG_SOURCES_DIR}/jcapistd.c | |
16 ${LIBJPEG_SOURCES_DIR}/jcarith.c | |
17 ${LIBJPEG_SOURCES_DIR}/jccoefct.c | |
18 ${LIBJPEG_SOURCES_DIR}/jccolor.c | |
19 ${LIBJPEG_SOURCES_DIR}/jcdctmgr.c | |
20 ${LIBJPEG_SOURCES_DIR}/jchuff.c | |
21 ${LIBJPEG_SOURCES_DIR}/jcinit.c | |
22 ${LIBJPEG_SOURCES_DIR}/jcmarker.c | |
23 ${LIBJPEG_SOURCES_DIR}/jcmaster.c | |
24 ${LIBJPEG_SOURCES_DIR}/jcomapi.c | |
25 ${LIBJPEG_SOURCES_DIR}/jcparam.c | |
26 ${LIBJPEG_SOURCES_DIR}/jcprepct.c | |
27 ${LIBJPEG_SOURCES_DIR}/jcsample.c | |
28 ${LIBJPEG_SOURCES_DIR}/jctrans.c | |
29 ${LIBJPEG_SOURCES_DIR}/jdapimin.c | |
30 ${LIBJPEG_SOURCES_DIR}/jdapistd.c | |
31 ${LIBJPEG_SOURCES_DIR}/jdarith.c | |
32 ${LIBJPEG_SOURCES_DIR}/jdatadst.c | |
33 ${LIBJPEG_SOURCES_DIR}/jdatasrc.c | |
34 ${LIBJPEG_SOURCES_DIR}/jdcoefct.c | |
35 ${LIBJPEG_SOURCES_DIR}/jdcolor.c | |
36 ${LIBJPEG_SOURCES_DIR}/jddctmgr.c | |
37 ${LIBJPEG_SOURCES_DIR}/jdhuff.c | |
38 ${LIBJPEG_SOURCES_DIR}/jdinput.c | |
39 ${LIBJPEG_SOURCES_DIR}/jcmainct.c | |
40 ${LIBJPEG_SOURCES_DIR}/jdmainct.c | |
41 ${LIBJPEG_SOURCES_DIR}/jdmarker.c | |
42 ${LIBJPEG_SOURCES_DIR}/jdmaster.c | |
43 ${LIBJPEG_SOURCES_DIR}/jdmerge.c | |
44 ${LIBJPEG_SOURCES_DIR}/jdpostct.c | |
45 ${LIBJPEG_SOURCES_DIR}/jdsample.c | |
46 ${LIBJPEG_SOURCES_DIR}/jdtrans.c | |
47 ${LIBJPEG_SOURCES_DIR}/jerror.c | |
48 ${LIBJPEG_SOURCES_DIR}/jfdctflt.c | |
49 ${LIBJPEG_SOURCES_DIR}/jfdctfst.c | |
50 ${LIBJPEG_SOURCES_DIR}/jfdctint.c | |
51 ${LIBJPEG_SOURCES_DIR}/jidctflt.c | |
52 ${LIBJPEG_SOURCES_DIR}/jidctfst.c | |
53 ${LIBJPEG_SOURCES_DIR}/jidctint.c | |
54 #${LIBJPEG_SOURCES_DIR}/jmemansi.c | |
55 #${LIBJPEG_SOURCES_DIR}/jmemdos.c | |
56 #${LIBJPEG_SOURCES_DIR}/jmemmac.c | |
57 ${LIBJPEG_SOURCES_DIR}/jmemmgr.c | |
58 #${LIBJPEG_SOURCES_DIR}/jmemname.c | |
59 ${LIBJPEG_SOURCES_DIR}/jmemnobs.c | |
60 ${LIBJPEG_SOURCES_DIR}/jquant1.c | |
61 ${LIBJPEG_SOURCES_DIR}/jquant2.c | |
62 ${LIBJPEG_SOURCES_DIR}/jutils.c | |
63 | |
64 # ${LIBJPEG_SOURCES_DIR}/rdbmp.c | |
65 # ${LIBJPEG_SOURCES_DIR}/rdcolmap.c | |
66 # ${LIBJPEG_SOURCES_DIR}/rdgif.c | |
67 # ${LIBJPEG_SOURCES_DIR}/rdppm.c | |
68 # ${LIBJPEG_SOURCES_DIR}/rdrle.c | |
69 # ${LIBJPEG_SOURCES_DIR}/rdswitch.c | |
70 # ${LIBJPEG_SOURCES_DIR}/rdtarga.c | |
71 # ${LIBJPEG_SOURCES_DIR}/transupp.c | |
72 # ${LIBJPEG_SOURCES_DIR}/wrbmp.c | |
73 # ${LIBJPEG_SOURCES_DIR}/wrgif.c | |
74 # ${LIBJPEG_SOURCES_DIR}/wrppm.c | |
75 # ${LIBJPEG_SOURCES_DIR}/wrrle.c | |
76 # ${LIBJPEG_SOURCES_DIR}/wrtarga.c | |
77 ) | |
78 | |
79 configure_file( | |
80 ${LIBJPEG_SOURCES_DIR}/jconfig.txt | |
81 ${LIBJPEG_SOURCES_DIR}/jconfig.h COPYONLY | |
82 ) | |
83 | |
2113
0108ac01fc8e
added source_group directives for MSVC
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1602
diff
changeset
|
84 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
|
85 |
1602 | 86 else() |
87 include(FindJPEG) | |
88 | |
89 if (NOT ${JPEG_FOUND}) | |
90 message(FATAL_ERROR "Unable to find libjpeg") | |
91 endif() | |
92 | |
93 include_directories(${JPEG_INCLUDE_DIR}) | |
94 link_libraries(${JPEG_LIBRARIES}) | |
95 endif() |