2016-09-25 16:19:39 -04:00
|
|
|
#############################################################################
|
|
|
|
# Name: build/cmake/lib/jpeg.cmake
|
|
|
|
# Purpose: Use external or internal libjpeg
|
|
|
|
# Author: Tobias Taschner
|
|
|
|
# Created: 2016-09-21
|
|
|
|
# Copyright: (c) 2016 wxWidgets development team
|
|
|
|
# Licence: wxWindows licence
|
|
|
|
#############################################################################
|
|
|
|
|
|
|
|
if(wxUSE_LIBJPEG STREQUAL "builtin")
|
|
|
|
wx_add_builtin_library(wxjpeg
|
2017-12-09 08:38:11 -05:00
|
|
|
src/jpeg/jaricom.c
|
2016-09-25 16:19:39 -04:00
|
|
|
src/jpeg/jcapimin.c
|
|
|
|
src/jpeg/jcapistd.c
|
2017-12-09 08:38:11 -05:00
|
|
|
src/jpeg/jcarith.c
|
|
|
|
src/jpeg/jccoefct.c
|
|
|
|
src/jpeg/jccolor.c
|
|
|
|
src/jpeg/jcdctmgr.c
|
|
|
|
src/jpeg/jchuff.c
|
2016-09-25 16:19:39 -04:00
|
|
|
src/jpeg/jcinit.c
|
|
|
|
src/jpeg/jcmainct.c
|
2017-12-09 08:38:11 -05:00
|
|
|
src/jpeg/jcmarker.c
|
|
|
|
src/jpeg/jcmaster.c
|
|
|
|
src/jpeg/jcomapi.c
|
|
|
|
src/jpeg/jcparam.c
|
2016-09-25 16:19:39 -04:00
|
|
|
src/jpeg/jcprepct.c
|
|
|
|
src/jpeg/jcsample.c
|
2017-12-09 08:38:11 -05:00
|
|
|
src/jpeg/jctrans.c
|
2016-09-25 16:19:39 -04:00
|
|
|
src/jpeg/jdapimin.c
|
|
|
|
src/jpeg/jdapistd.c
|
2017-12-09 08:38:11 -05:00
|
|
|
src/jpeg/jdarith.c
|
|
|
|
src/jpeg/jdatadst.c
|
2016-09-25 16:19:39 -04:00
|
|
|
src/jpeg/jdatasrc.c
|
2017-12-09 08:38:11 -05:00
|
|
|
src/jpeg/jdcoefct.c
|
|
|
|
src/jpeg/jdcolor.c
|
|
|
|
src/jpeg/jddctmgr.c
|
2016-09-25 16:19:39 -04:00
|
|
|
src/jpeg/jdhuff.c
|
2017-12-09 08:38:11 -05:00
|
|
|
src/jpeg/jdinput.c
|
2016-09-25 16:19:39 -04:00
|
|
|
src/jpeg/jdmainct.c
|
2017-12-09 08:38:11 -05:00
|
|
|
src/jpeg/jdmarker.c
|
|
|
|
src/jpeg/jdmaster.c
|
|
|
|
src/jpeg/jdmerge.c
|
2016-09-25 16:19:39 -04:00
|
|
|
src/jpeg/jdpostct.c
|
2017-12-09 08:38:11 -05:00
|
|
|
src/jpeg/jdsample.c
|
|
|
|
src/jpeg/jdtrans.c
|
|
|
|
src/jpeg/jerror.c
|
|
|
|
src/jpeg/jfdctflt.c
|
|
|
|
src/jpeg/jfdctfst.c
|
|
|
|
src/jpeg/jfdctint.c
|
2016-09-25 16:19:39 -04:00
|
|
|
src/jpeg/jidctflt.c
|
2017-12-09 08:38:11 -05:00
|
|
|
src/jpeg/jidctfst.c
|
2016-09-25 16:19:39 -04:00
|
|
|
src/jpeg/jidctint.c
|
2017-12-09 08:38:11 -05:00
|
|
|
src/jpeg/jmemmgr.c
|
|
|
|
src/jpeg/jmemnobs.c
|
2016-09-25 16:19:39 -04:00
|
|
|
src/jpeg/jquant1.c
|
|
|
|
src/jpeg/jquant2.c
|
2017-12-09 08:38:11 -05:00
|
|
|
src/jpeg/jutils.c
|
2016-09-25 16:19:39 -04:00
|
|
|
)
|
|
|
|
target_include_directories(wxjpeg
|
|
|
|
BEFORE PRIVATE
|
|
|
|
${wxSETUP_HEADER_PATH}
|
|
|
|
)
|
|
|
|
set(JPEG_LIBRARIES wxjpeg)
|
|
|
|
set(JPEG_INCLUDE_DIR ${wxSOURCE_DIR}/src/jpeg)
|
|
|
|
elseif(wxUSE_LIBJPEG)
|
|
|
|
find_package(JPEG REQUIRED)
|
|
|
|
endif()
|