2017-04-27 23:00:00 +08:00
|
|
|
cmake_minimum_required(VERSION 3.4)
|
|
|
|
|
2019-03-27 08:31:19 +08:00
|
|
|
project(giflib C)
|
2017-04-27 23:00:00 +08:00
|
|
|
|
|
|
|
set(GIFLIB_HEADERS
|
|
|
|
lib/gif_lib.h
|
|
|
|
)
|
|
|
|
|
|
|
|
set(GIFLIB_SOURCES
|
|
|
|
lib/dgif_lib.c
|
|
|
|
lib/egif_lib.c
|
|
|
|
lib/gif_err.c
|
|
|
|
lib/gif_font.c
|
|
|
|
lib/gif_hash.c
|
|
|
|
lib/gifalloc.c
|
|
|
|
lib/openbsd-reallocarray.c
|
|
|
|
lib/quantize.c
|
|
|
|
)
|
|
|
|
|
2019-03-29 05:46:21 +08:00
|
|
|
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
2017-04-27 23:00:00 +08:00
|
|
|
add_library(gif ${GIFLIB_SOURCES})
|
|
|
|
|
|
|
|
if (NOT GIFLIB_SKIP_HEADERS)
|
|
|
|
install(FILES ${GIFLIB_HEADERS} DESTINATION include)
|
|
|
|
endif ()
|
|
|
|
|
|
|
|
install(TARGETS gif
|
|
|
|
RUNTIME DESTINATION bin
|
|
|
|
LIBRARY DESTINATION lib
|
|
|
|
ARCHIVE DESTINATION lib
|
|
|
|
)
|