CMakeLists.txt 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # memmgr back ends: compile only one of these into a working library
  2. # (For now, let's use the mode that requires the image fit into memory.
  3. # This is the recommended mode for Win32 anyway.)
  4. set(systemdependent_SRCS jmemnobs.c)
  5. # library object files common to compression and decompression
  6. set(common_SRCS
  7. jaricom.c jcomapi.c jutils.c jerror.c jmemmgr.c
  8. )
  9. # compression library object files
  10. set(compression_SRCS
  11. jcapimin.c jcapistd.c jcarith.c jctrans.c jcparam.c jdatadst.c jcinit.c
  12. jcmaster.c jcmarker.c jcmainct.c jcprepct.c jccoefct.c jccolor.c
  13. jcsample.c jchuff.c jcdctmgr.c jfdctfst.c jfdctflt.c
  14. jfdctint.c
  15. )
  16. # decompression library object files
  17. set(decompression_SRCS
  18. jdapimin.c jdapistd.c jdarith.c jdtrans.c jdatasrc.c jdmaster.c
  19. jdinput.c jdmarker.c jdhuff.c jdmainct.c jdcoefct.c
  20. jdpostct.c jddctmgr.c jidctfst.c jidctflt.c jidctint.c
  21. jdsample.c jdcolor.c jquant1.c jquant2.c jdmerge.c
  22. )
  23. list(APPEND BUILD_SRCS "${systemdependent_SRCS};${common_SRCS}")
  24. list(APPEND BUILD_SRCS "${compression_SRCS};${decompression_SRCS}")
  25. #######################################################################
  26. FL_ADD_LIBRARY(fltk_jpeg STATIC "${BUILD_SRCS}")
  27. # install the jpeg headers
  28. install(FILES jconfig.h;jerror.h;jmorecfg.h;jpeglib.h
  29. DESTINATION ${FLTK_INCLUDEDIR}/FL/images
  30. )
  31. #######################################################################
  32. if(OPTION_BUILD_SHARED_LIBS)
  33. #######################################################################
  34. FL_ADD_LIBRARY(fltk_jpeg SHARED "${BUILD_SRCS}")
  35. #######################################################################
  36. endif(OPTION_BUILD_SHARED_LIBS)
  37. #######################################################################