annotate Resources/CMake/LibJpegConfiguration.cmake @ 1871:e8146c9c28a4

Promiscuous mode is now turned off by default
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 07 Dec 2015 09:46:37 +0100
parents 292bce3f54ed
children 0108ac01fc8e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1602
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1 if (STATIC_BUILD OR NOT USE_SYSTEM_LIBJPEG)
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
2 set(LIBJPEG_SOURCES_DIR ${CMAKE_BINARY_DIR}/jpeg-9a)
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
3 DownloadPackage(
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
4 "3353992aecaee1805ef4109aadd433e7"
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
5 "http://www.montefiore.ulg.ac.be/~jodogne/Orthanc/ThirdPartyDownloads/jpegsrc.v9a.tar.gz"
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
6 "${LIBJPEG_SOURCES_DIR}")
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
7
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
8 include_directories(
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
9 ${LIBJPEG_SOURCES_DIR}
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
10 )
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
11
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
12 list(APPEND LIBJPEG_SOURCES
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
13 ${LIBJPEG_SOURCES_DIR}/jaricom.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
14 ${LIBJPEG_SOURCES_DIR}/jcapimin.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
15 ${LIBJPEG_SOURCES_DIR}/jcapistd.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
16 ${LIBJPEG_SOURCES_DIR}/jcarith.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
17 ${LIBJPEG_SOURCES_DIR}/jccoefct.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
18 ${LIBJPEG_SOURCES_DIR}/jccolor.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
19 ${LIBJPEG_SOURCES_DIR}/jcdctmgr.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
20 ${LIBJPEG_SOURCES_DIR}/jchuff.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
21 ${LIBJPEG_SOURCES_DIR}/jcinit.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
22 ${LIBJPEG_SOURCES_DIR}/jcmarker.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
23 ${LIBJPEG_SOURCES_DIR}/jcmaster.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
24 ${LIBJPEG_SOURCES_DIR}/jcomapi.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
25 ${LIBJPEG_SOURCES_DIR}/jcparam.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
26 ${LIBJPEG_SOURCES_DIR}/jcprepct.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
27 ${LIBJPEG_SOURCES_DIR}/jcsample.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
28 ${LIBJPEG_SOURCES_DIR}/jctrans.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
29 ${LIBJPEG_SOURCES_DIR}/jdapimin.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
30 ${LIBJPEG_SOURCES_DIR}/jdapistd.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
31 ${LIBJPEG_SOURCES_DIR}/jdarith.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
32 ${LIBJPEG_SOURCES_DIR}/jdatadst.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
33 ${LIBJPEG_SOURCES_DIR}/jdatasrc.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
34 ${LIBJPEG_SOURCES_DIR}/jdcoefct.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
35 ${LIBJPEG_SOURCES_DIR}/jdcolor.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
36 ${LIBJPEG_SOURCES_DIR}/jddctmgr.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
37 ${LIBJPEG_SOURCES_DIR}/jdhuff.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
38 ${LIBJPEG_SOURCES_DIR}/jdinput.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
39 ${LIBJPEG_SOURCES_DIR}/jcmainct.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
40 ${LIBJPEG_SOURCES_DIR}/jdmainct.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
41 ${LIBJPEG_SOURCES_DIR}/jdmarker.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
42 ${LIBJPEG_SOURCES_DIR}/jdmaster.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
43 ${LIBJPEG_SOURCES_DIR}/jdmerge.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
44 ${LIBJPEG_SOURCES_DIR}/jdpostct.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
45 ${LIBJPEG_SOURCES_DIR}/jdsample.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
46 ${LIBJPEG_SOURCES_DIR}/jdtrans.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
47 ${LIBJPEG_SOURCES_DIR}/jerror.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
48 ${LIBJPEG_SOURCES_DIR}/jfdctflt.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
49 ${LIBJPEG_SOURCES_DIR}/jfdctfst.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
50 ${LIBJPEG_SOURCES_DIR}/jfdctint.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
51 ${LIBJPEG_SOURCES_DIR}/jidctflt.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
52 ${LIBJPEG_SOURCES_DIR}/jidctfst.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
53 ${LIBJPEG_SOURCES_DIR}/jidctint.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
54 #${LIBJPEG_SOURCES_DIR}/jmemansi.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
55 #${LIBJPEG_SOURCES_DIR}/jmemdos.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
56 #${LIBJPEG_SOURCES_DIR}/jmemmac.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
57 ${LIBJPEG_SOURCES_DIR}/jmemmgr.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
58 #${LIBJPEG_SOURCES_DIR}/jmemname.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
59 ${LIBJPEG_SOURCES_DIR}/jmemnobs.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
60 ${LIBJPEG_SOURCES_DIR}/jquant1.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
61 ${LIBJPEG_SOURCES_DIR}/jquant2.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
62 ${LIBJPEG_SOURCES_DIR}/jutils.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
63
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
64 # ${LIBJPEG_SOURCES_DIR}/rdbmp.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
65 # ${LIBJPEG_SOURCES_DIR}/rdcolmap.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
66 # ${LIBJPEG_SOURCES_DIR}/rdgif.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
67 # ${LIBJPEG_SOURCES_DIR}/rdppm.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
68 # ${LIBJPEG_SOURCES_DIR}/rdrle.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
69 # ${LIBJPEG_SOURCES_DIR}/rdswitch.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
70 # ${LIBJPEG_SOURCES_DIR}/rdtarga.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
71 # ${LIBJPEG_SOURCES_DIR}/transupp.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
72 # ${LIBJPEG_SOURCES_DIR}/wrbmp.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
73 # ${LIBJPEG_SOURCES_DIR}/wrgif.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
74 # ${LIBJPEG_SOURCES_DIR}/wrppm.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
75 # ${LIBJPEG_SOURCES_DIR}/wrrle.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
76 # ${LIBJPEG_SOURCES_DIR}/wrtarga.c
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
77 )
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
78
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
79 configure_file(
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
80 ${LIBJPEG_SOURCES_DIR}/jconfig.txt
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
81 ${LIBJPEG_SOURCES_DIR}/jconfig.h COPYONLY
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
82 )
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
83
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
84 else()
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
85 include(FindJPEG)
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
86
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
87 if (NOT ${JPEG_FOUND})
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
88 message(FATAL_ERROR "Unable to find libjpeg")
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
89 endif()
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
90
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
91 include_directories(${JPEG_INCLUDE_DIR})
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
92 link_libraries(${JPEG_LIBRARIES})
292bce3f54ed JpegWriter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
93 endif()