Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 3.146.65.134
SET (LIBGD_SRC_FILES
bmp.h
gd.c
gd.h
gd_bmp.c
gd_color.c
gd_color.h
gd_color_map.c
gd_color_map.h
gd_crop.c
gd_filename.c
gd_filter.c
gd_gd.c
gd_gd2.c
gd_gif_in.c
gd_gif_out.c
gd_interpolation.c
gd_io.c
gd_io.h
gd_io_dp.c
gd_io_file.c
gd_io_ss.c
gd_io_stream.cxx
gd_io_stream.h
gd_jpeg.c
gd_matrix.c
gd_nnquant.c
gd_nnquant.h
gd_png.c
gd_rotate.c
gd_security.c
gd_ss.c
gd_tga.c
gd_tga.h
gd_tiff.c
gd_topal.c
gd_transform.c
gd_version.c
gd_wbmp.c
gd_webp.c
gd_xbm.c
gdcache.c
gdcache.h
gdfontg.c
gdfontg.h
gdfontl.c
gdfontl.h
gdfontmb.c
gdfontmb.h
gdfonts.c
gdfonts.h
gdfontt.c
gdfontt.h
gdft.c
gdfx.c
gdfx.h
gdhelpers.c
gdhelpers.h
gdkanji.c
gdpp.cxx
gdpp.h
gdtables.c
gdxpm.c
jisx0208.h
wbmp.c
wbmp.h
)
if(MSVC AND MSVC_VERSION LESS 1900)
set(LIBGD_SRC_FILES ${LIBGD_SRC_FILES}
snprintf.c
)
endif(MSVC AND MSVC_VERSION LESS 1900)
include(GNUInstallDirs)
if (BUILD_SHARED_LIBS)
add_library(${GD_LIB} ${LIBGD_SRC_FILES})
endif()
add_library(${GD_LIB_STATIC} STATIC ${LIBGD_SRC_FILES})
if (WIN32 AND NOT MINGW AND NOT MSYS)
# SET_TARGET_PROPERTIES(${GD_LIB} PROPERTIES LINK_FLAGS "/NODEFAULTLIB:msvcrt.lib")
SET_PROPERTY(TARGET ${GD_LIB_STATIC} APPEND PROPERTY COMPILE_DEFINITIONS NONDLL=1)
ENDIF(WIN32 AND NOT MINGW AND NOT MSYS)
if(UNIX)
set_target_properties(${GD_LIB_STATIC} PROPERTIES OUTPUT_NAME ${GD_LIB})
endif()
if (MINGW OR MSYS)
ADD_DEFINITIONS("-mms-bitfields")
set_target_properties(${GD_LIB_STATIC} PROPERTIES OUTPUT_NAME ${GD_LIB})
endif (MINGW OR MSYS)
INCLUDE_DIRECTORIES(BEFORE "${PROJECT_BINARY_DIR}" "${CMAKE_BINARY_DIR}" "${GD_SOURCE_DIR}/src")
if (BUILD_SHARED_LIBS)
target_link_libraries(${GD_LIB} ${ZLIB_LIBRARIES} ${FREETYPE_LIBRARIES} ${PNG_LIBRARIES} ${ICONV_LIBRARIES} ${LIQ_LIBRARIES} ${JPEG_LIBRARIES} ${TIFF_LIBRARIES} ${XPM_LIBRARIES} ${FONTCONFIG_LIBRARY} ${WEBP_LIBRARIES})
endif()
target_link_libraries(${GD_LIB_STATIC} ${ZLIB_LIBRARIES} ${FREETYPE_LIBRARIES} ${PNG_LIBRARIES} ${ICONV_LIBRARIES} ${LIQ_LIBRARIES} ${JPEG_LIBRARIES} ${TIFF_LIBRARIES} ${XPM_LIBRARIES} ${FONTCONFIG_LIBRARY} ${WEBP_LIBRARIES} )
set(GD_PROGRAMS gdcmpgif)
if (PNG_FOUND)
set(GD_PROGRAMS ${GD_PROGRAMS} gdtopng pngtogd webpng)
if (ZLIB_FOUND)
set(GD_PROGRAMS ${GD_PROGRAMS} gdparttopng gd2topng pngtogd2)
endif()
endif()
if (FREETYPE_FOUND)
set(GD_PROGRAMS ${GD_PROGRAMS} annotate)
endif()
if (ZLIB_FOUND)
set(GD_PROGRAMS ${GD_PROGRAMS} gd2copypal gd2togif giftogd2)
endif()
foreach(program ${GD_PROGRAMS})
add_executable(${program} ${program}.c)
if (BUILD_SHARED_LIBS)
target_link_libraries(${program} ${GD_LIB})
else()
target_link_libraries(${program} ${GD_LIB_STATIC})
endif()
endforeach(program)
if (BUILD_SHARED_LIBS)
set(GD_INSTALL_TARGETS ${GD_LIB} ${GD_LIB_STATIC} ${GD_PROGRAMS})
else()
set(GD_INSTALL_TARGETS ${GD_LIB_STATIC} ${GD_PROGRAMS})
endif()
install(TARGETS ${GD_INSTALL_TARGETS}
RUNTIME DESTINATION bin
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
install(PROGRAMS bdftogd DESTINATION bin)
install(FILES
entities.h
gd.h
gd_color_map.h
gd_errors.h
gd_io.h
gdcache.h
gdfontg.h
gdfontl.h
gdfontmb.h
gdfonts.h
gdfontt.h
gdfx.h
gdpp.h
DESTINATION include)
|