2010-04-06 02:33:58 +04:00
|
|
|
project(FLTKJPEG)
|
2004-10-19 00:29:58 +04:00
|
|
|
|
2010-04-06 02:33:58 +04:00
|
|
|
include_regular_expression("^j.*[.][c|h]$")
|
2004-10-19 00:29:58 +04:00
|
|
|
|
2010-04-06 02:33:58 +04:00
|
|
|
include_directories(${FLTKJPEG_SOURCE_DIR})
|
|
|
|
include_directories(${FLTKJPEG_BINARY_DIR})
|
2004-10-19 00:29:58 +04:00
|
|
|
|
|
|
|
# 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.)
|
2010-04-06 02:33:58 +04:00
|
|
|
set(systemdependent_SRCS jmemnobs.c)
|
2004-10-19 00:29:58 +04:00
|
|
|
|
|
|
|
# library object files common to compression and decompression
|
2010-04-06 02:33:58 +04:00
|
|
|
set(common_SRCS
|
2011-02-15 18:25:53 +03:00
|
|
|
jaricom.c jcomapi.c jutils.c jerror.c jmemmgr.c
|
2004-10-19 00:29:58 +04:00
|
|
|
)
|
|
|
|
|
|
|
|
# compression library object files
|
2010-04-06 02:33:58 +04:00
|
|
|
set(compression_SRCS
|
2011-02-15 18:25:53 +03:00
|
|
|
jcapimin.c jcapistd.c jcarith.c jctrans.c jcparam.c jdatadst.c jcinit.c
|
2010-04-06 02:33:58 +04:00
|
|
|
jcmaster.c jcmarker.c jcmainct.c jcprepct.c jccoefct.c jccolor.c
|
2011-02-15 18:25:53 +03:00
|
|
|
jcsample.c jchuff.c jcdctmgr.c jfdctfst.c jfdctflt.c
|
2010-04-06 02:33:58 +04:00
|
|
|
jfdctint.c
|
2004-10-19 00:29:58 +04:00
|
|
|
)
|
|
|
|
|
|
|
|
# decompression library object files
|
2010-04-06 02:33:58 +04:00
|
|
|
set(decompression_SRCS
|
2011-02-15 18:25:53 +03:00
|
|
|
jdapimin.c jdapistd.c jdarith.c jdtrans.c jdatasrc.c jdmaster.c
|
|
|
|
jdinput.c jdmarker.c jdhuff.c jdmainct.c jdcoefct.c
|
|
|
|
jdpostct.c jddctmgr.c jidctfst.c jidctflt.c jidctint.c
|
2010-04-06 02:33:58 +04:00
|
|
|
jdsample.c jdcolor.c jquant1.c jquant2.c jdmerge.c
|
2004-10-19 00:29:58 +04:00
|
|
|
)
|
|
|
|
|
2010-04-06 02:33:58 +04:00
|
|
|
#######################################################################
|
|
|
|
add_library(fltk_jpeg ${systemdependent_SRCS} ${common_SRCS} ${compression_SRCS} ${decompression_SRCS})
|
|
|
|
|
|
|
|
if(MSVC)
|
|
|
|
set_target_properties(fltk_jpeg
|
|
|
|
PROPERTIES
|
|
|
|
OUTPUT_NAME fltkjpeg
|
|
|
|
DEBUG_OUTPUT_NAME fltkjpegd
|
|
|
|
)
|
|
|
|
if(OPTION_LARGE_FILE)
|
|
|
|
set_target_properties(fltk_jpeg PROPERTIES LINK_FLAGS /LARGEADDRESSAWARE)
|
|
|
|
endif(OPTION_LARGE_FILE)
|
|
|
|
endif(MSVC)
|
|
|
|
|
|
|
|
install(TARGETS fltk_jpeg
|
|
|
|
EXPORT fltk-install
|
|
|
|
DESTINATION ${PREFIX_LIB}
|
|
|
|
)
|