You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.6KB

  1. project(FLTKJPEG)
  2. include_regular_expression("^j.*[.][c|h]$")
  3. include_directories(${FLTKJPEG_SOURCE_DIR})
  4. include_directories(${FLTKJPEG_BINARY_DIR})
  5. # memmgr back ends: compile only one of these into a working library
  6. # (For now, let's use the mode that requires the image fit into memory.
  7. # This is the recommended mode for Win32 anyway.)
  8. set(systemdependent_SRCS jmemnobs.c)
  9. # library object files common to compression and decompression
  10. set(common_SRCS
  11. jaricom.c jcomapi.c jutils.c jerror.c jmemmgr.c
  12. )
  13. # compression library object files
  14. set(compression_SRCS
  15. jcapimin.c jcapistd.c jcarith.c jctrans.c jcparam.c jdatadst.c jcinit.c
  16. jcmaster.c jcmarker.c jcmainct.c jcprepct.c jccoefct.c jccolor.c
  17. jcsample.c jchuff.c jcdctmgr.c jfdctfst.c jfdctflt.c
  18. jfdctint.c
  19. )
  20. # decompression library object files
  21. set(decompression_SRCS
  22. jdapimin.c jdapistd.c jdarith.c jdtrans.c jdatasrc.c jdmaster.c
  23. jdinput.c jdmarker.c jdhuff.c jdmainct.c jdcoefct.c
  24. jdpostct.c jddctmgr.c jidctfst.c jidctflt.c jidctint.c
  25. jdsample.c jdcolor.c jquant1.c jquant2.c jdmerge.c
  26. )
  27. #######################################################################
  28. add_library(fltk_jpeg ${systemdependent_SRCS} ${common_SRCS} ${compression_SRCS} ${decompression_SRCS})
  29. if(MSVC)
  30. set_target_properties(fltk_jpeg
  31. PROPERTIES
  32. OUTPUT_NAME fltkjpeg
  33. DEBUG_OUTPUT_NAME fltkjpegd
  34. )
  35. if(OPTION_LARGE_FILE)
  36. set_target_properties(fltk_jpeg PROPERTIES LINK_FLAGS /LARGEADDRESSAWARE)
  37. endif(OPTION_LARGE_FILE)
  38. endif(MSVC)
  39. install(TARGETS fltk_jpeg
  40. EXPORT fltk-install
  41. DESTINATION ${PREFIX_LIB}
  42. )