2019-09-22 06:59:48 +00:00
|
|
|
cmake_minimum_required( VERSION 2.8.7 )
|
|
|
|
|
|
|
|
make_release_only()
|
|
|
|
|
2019-09-22 23:28:18 +00:00
|
|
|
if( DEM_CMAKE_COMPILER_IS_GNUC_COMPATIBLE )
|
2019-09-22 06:59:48 +00:00
|
|
|
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wno-unused-parameter -fomit-frame-pointer" )
|
|
|
|
endif()
|
|
|
|
|
|
|
|
add_library( jpeg STATIC
|
|
|
|
jaricom.c
|
|
|
|
jcomapi.c
|
|
|
|
jdapimin.c
|
|
|
|
jdapistd.c
|
|
|
|
jdarith.c
|
|
|
|
jdatasrc.c
|
|
|
|
jdcoefct.c
|
|
|
|
jdcolor.c
|
|
|
|
jddctmgr.c
|
|
|
|
jdhuff.c
|
|
|
|
jdinput.c
|
|
|
|
jdmainct.c
|
|
|
|
jdmarker.c
|
|
|
|
jdmaster.c
|
|
|
|
jdmerge.c
|
|
|
|
jdpostct.c
|
|
|
|
jdsample.c
|
|
|
|
jerror.c
|
|
|
|
jidctflt.c
|
|
|
|
jidctfst.c
|
|
|
|
jidctint.c
|
|
|
|
jmemansi.c
|
|
|
|
jmemmgr.c
|
|
|
|
jquant1.c
|
|
|
|
jquant2.c
|
|
|
|
jutils.c )
|
|
|
|
target_link_libraries( jpeg )
|