]> Creatis software - gdcm.git/blobdiff - src/jpeg/libijg8/CMakeLists.txt
ENH: Reorganize cmakelists.txt file
[gdcm.git] / src / jpeg / libijg8 / CMakeLists.txt
index f327e65308e75391c3ea41cb4a829989e5fec53a..868f1a421c19c03f2309a1b388e60bb818d6c716 100644 (file)
@@ -1,83 +1,32 @@
-#LTVERSION = 0:1:0\r
-\r
-#lib_LTLIBRARIES = libgdcmijpeg8.la\r
-\r
-##CXXFLAGS = @CXXFLAGS@\r
-\r
-SET(libgdcmijpeg8_la_SOURCES\r
-jcapimin.c \r
-jcapistd.c \r
-jctrans.c \r
-jcparam.c\r
-jdatadst.c \r
-jcinit.c \r
-jcmaster.c \r
-jcmarker.c \r
-jcmainct.c \r
-jcprepct.c \r
-jccoefct.c \r
-jccolor.c \r
-jcsample.c \r
-jchuff.c \r
-jcphuff.c \r
-jcdctmgr.c # where commented out till here\r
-jfdctfst.c \r
-jfdctflt.c \r
-jfdctint.c \r
-jdapimin.c \r
-jdapistd.c \r
-jdtrans.c \r
-jdatasrc.c \r
-jdmaster.c \r
-jdinput.c \r
-jdmarker.c \r
-jdhuff.c \r
-jdphuff.c \r
-jdmainct.c \r
-jdcoefct.c \r
-jdpostct.c \r
-jddctmgr.c \r
-jidctfst.c \r
-jidctflt.c \r
-jidctint.c \r
-jidctred.c \r
-jdsample.c \r
-jdcolor.c \r
-jquant1.c \r
-jquant2.c \r
-jdmerge.c \r
-jcomapi.c \r
-jutils.c \r
-jerror.c \r
-jmemmgr.c \r
-jmemnobs.c \r
-# rdrle.c\r
-)\r
-\r
-#libgdcmijpeg8includedir = $(includedir)\r
-SET(libgdcmijpeg8include_HEADERS\r
-jchuff.h  \r
-jconfig.h  \r
-jdct.h  \r
-jdhuff.h  \r
-jerror.h  \r
-jinclude.h  \r
-jmemsys.h  \r
-jmorecfg.h  \r
-jpegint.h  \r
-jpeglib.h  \r
-jversion.h \r
-)\r
-\r
-#EXTRA_DIST = \\r
-#   jconfig.linux \\r
-#   jconfig.vc\r
-\r
-ADD_LIBRARY(gdcmijpeg8 ${libgdcmijpeg8_la_SOURCES})\r
-\r
-#INSTALL_FILES(/include "\\.h$")\r
-INSTALL_FILES(/include FILES ${libgdcmijpeg8include_HEADERS})\r
-#INSTALL_FILES(/include FILES jconfig.linux jconfig.vc)\r
-INSTALL_FILES(/include FILES jconfig.linux)\r
-\r
-INSTALL_TARGETS(/lib/ gdcmijpeg8)\r
+# JPEG 8 bits project
+
+# 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)
+
+# library object files common to compression and decompression
+SET(common_SRCS
+jcomapi.c jutils.c jerror.c jmemmgr.c
+)
+
+# 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
+)
+
+# 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
+)
+
+ADD_LIBRARY(gdcmijpeg8 ${systemdependent_SRCS} ${common_SRCS} ${compression_SRCS} ${decompression_SRCS})
+
+INSTALL_TARGETS(/lib/ gdcmijpeg8)
+INSTALL_FILES(/include .h jconfig.linux jconfig.vc)