comparison Resources/CMake/LibJpegConfiguration.cmake @ 1602:292bce3f54ed

JpegWriter
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 01 Sep 2015 13:06:39 +0200
parents
children 0108ac01fc8e
comparison
equal deleted inserted replaced
1601:6cccf1da35c6 1602:292bce3f54ed
1 if (STATIC_BUILD OR NOT USE_SYSTEM_LIBJPEG)
2 set(LIBJPEG_SOURCES_DIR ${CMAKE_BINARY_DIR}/jpeg-9a)
3 DownloadPackage(
4 "3353992aecaee1805ef4109aadd433e7"
5 "http://www.montefiore.ulg.ac.be/~jodogne/Orthanc/ThirdPartyDownloads/jpegsrc.v9a.tar.gz"
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
84 else()
85 include(FindJPEG)
86
87 if (NOT ${JPEG_FOUND})
88 message(FATAL_ERROR "Unable to find libjpeg")
89 endif()
90
91 include_directories(${JPEG_INCLUDE_DIR})
92 link_libraries(${JPEG_LIBRARIES})
93 endif()