X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2Fjpeg%2Flibijg8%2FCMakeLists.txt;h=868f1a421c19c03f2309a1b388e60bb818d6c716;hb=2d4135caaf9d8aa9cc41ae562369af518d646e0f;hp=a16baf92843a7c34170453964d2a9c233979b491;hpb=532e2ee2beaace36c3e8fb62d185b79c5c8f6e96;p=gdcm.git diff --git a/src/jpeg/libijg8/CMakeLists.txt b/src/jpeg/libijg8/CMakeLists.txt index a16baf92..868f1a42 100644 --- a/src/jpeg/libijg8/CMakeLists.txt +++ b/src/jpeg/libijg8/CMakeLists.txt @@ -1,83 +1,32 @@ -#LTVERSION = 0:1:0 +# JPEG 8 bits project -#lib_LTLIBRARIES = libgdcmijpeg8.la +# memmgr back ends: compile only one of these into a working library +# (For now, let's use the mode that requires the image fit into memory. +# This is the recommended mode for Win32 anyway.) +SET(systemdependent_SRCS jmemnobs.c) -##CXXFLAGS = @CXXFLAGS@ - -SET(libgdcmijpeg8_la_SOURCES -jcapimin.c -jcapistd.c -jctrans.c -jcparam.c -jdatadst.c -jcinit.c -jcmaster.c -jcmarker.c -jcmainct.c -jcprepct.c -jccoefct.c -jccolor.c -jcsample.c -jchuff.c -jcphuff.c -jcdctmgr.c # where commented out till here -jfdctfst.c -jfdctflt.c -jfdctint.c -jdapimin.c -jdapistd.c -jdtrans.c -jdatasrc.c -jdmaster.c -jdinput.c -jdmarker.c -jdhuff.c -jdphuff.c -jdmainct.c -jdcoefct.c -jdpostct.c -jddctmgr.c -jidctfst.c -jidctflt.c -jidctint.c -jidctred.c -jdsample.c -jdcolor.c -jquant1.c -jquant2.c -jdmerge.c -jcomapi.c -jutils.c -jerror.c -jmemmgr.c -jmemnobs.c -# rdrle.c +# library object files common to compression and decompression +SET(common_SRCS +jcomapi.c jutils.c jerror.c jmemmgr.c ) -#libgdcmijpeg8includedir = $(includedir) -SET(libgdcmijpeg8include_HEADERS -jchuff.h -jconfig.h -jdct.h -jdhuff.h -jerror.h -jinclude.h -jmemsys.h -jmorecfg.h -jpegint.h -jpeglib.h -jversion.h +# compression library object files +SET(compression_SRCS +jcapimin.c jcapistd.c jctrans.c jcparam.c jdatadst.c jcinit.c +jcmaster.c jcmarker.c jcmainct.c jcprepct.c jccoefct.c jccolor.c +jcsample.c jchuff.c jcphuff.c jcdctmgr.c jfdctfst.c jfdctflt.c +jfdctint.c ) -#EXTRA_DIST = \ -# jconfig.linux \ -# jconfig.vc - -ADD_LIBRARY(gdcmijpeg8 ${libgdcmijpeg8_la_SOURCES}) +# decompression library object files +SET(decompression_SRCS +jdapimin.c jdapistd.c jdtrans.c jdatasrc.c jdmaster.c +jdinput.c jdmarker.c jdhuff.c jdphuff.c jdmainct.c jdcoefct.c +jdpostct.c jddctmgr.c jidctfst.c jidctflt.c jidctint.c jidctred.c +jdsample.c jdcolor.c jquant1.c jquant2.c jdmerge.c +) -#INSTALL_FILES(/include "\\.h$") -INSTALL_FILES(/include FILES ${libgdcmijpeg8include_HEADERS}) -#INSTALL_FILES(/include FILES jconfig.linux jconfig.vc) -INSTALL_FILES(/include FILES jconfig.linux) +ADD_LIBRARY(gdcmijpeg8 ${systemdependent_SRCS} ${common_SRCS} ${compression_SRCS} ${decompression_SRCS}) INSTALL_TARGETS(/lib/ gdcmijpeg8) +INSTALL_FILES(/include .h jconfig.linux jconfig.vc)