2008-09-19 02:44:52 +12:00
|
|
|
# (c) 2008 by BogDan Vatra < bogdan@licentia.eu >
|
|
|
|
|
|
|
|
project(zint)
|
|
|
|
|
|
|
|
find_package(PNG)
|
|
|
|
|
2016-08-16 23:43:41 +12:00
|
|
|
set(zint_COMMON_SRCS common.c library.c render.c large.c reedsol.c gs1.c eci.c)
|
2008-09-19 02:44:52 +12:00
|
|
|
set(zint_ONEDIM_SRCS code.c code128.c 2of5.c upcean.c telepen.c medical.c plessey.c rss.c)
|
2018-02-07 09:57:01 +13:00
|
|
|
set(zint_POSTAL_SRCS postal.c auspost.c imail.c mailmark.c)
|
2016-08-25 06:37:49 +12:00
|
|
|
set(zint_TWODIM_SRCS code16k.c codablock.c dmatrix.c pdf417.c qr.c maxicode.c composite.c aztec.c code49.c code1.c gridmtx.c hanxin.c dotcode.c)
|
2018-06-10 20:16:18 +12:00
|
|
|
set(zint_OUTPUT_SRCS vector.c render.c ps.c svg.c emf.c bmp.c pcx.c gif.c png.c tif.c raster.c)
|
2016-07-20 10:02:39 +12:00
|
|
|
set(zint_SRCS ${zint_OUTPUT_SRCS} ${zint_COMMON_SRCS} ${zint_ONEDIM_SRCS} ${zint_POSTAL_SRCS} ${zint_TWODIM_SRCS})
|
2008-09-19 02:44:52 +12:00
|
|
|
|
|
|
|
if(PNG_FOUND)
|
|
|
|
include_directories( ${PNG_INCLUDES} )
|
|
|
|
else(PNG_FOUND)
|
|
|
|
add_definitions (-DNO_PNG)
|
|
|
|
endif(PNG_FOUND)
|
|
|
|
|
|
|
|
add_library(zint SHARED ${zint_SRCS})
|
|
|
|
|
2009-08-11 06:39:32 +12:00
|
|
|
set_target_properties(zint PROPERTIES SOVERSION "${ZINT_VERSION_MAJOR}.${ZINT_VERSION_MINOR}"
|
|
|
|
VERSION ${ZINT_VERSION})
|
2008-09-19 02:44:52 +12:00
|
|
|
|
2016-08-26 22:44:02 +12:00
|
|
|
if(PNG_FOUND)
|
|
|
|
target_link_libraries(zint ${PNG_LIBRARIES} )
|
|
|
|
endif(PNG_FOUND)
|
2011-01-03 10:56:30 +13:00
|
|
|
target_link_libraries(zint -lm)
|
2008-09-19 02:44:52 +12:00
|
|
|
|
2008-09-24 21:00:44 +12:00
|
|
|
install(TARGETS zint ${INSTALL_TARGETS_DEFAULT_ARGS} )
|
|
|
|
install(FILES zint.h DESTINATION ${INCLUDE_INSTALL_DIR} COMPONENT Devel)
|