1
0
mirror of https://github.com/woo-j/zint.git synced 2024-12-26 19:21:25 +03:00
zint/backend/CMakeLists.txt

29 lines
1.0 KiB
CMake
Raw Normal View History

2008-09-18 18:44:52 +04:00
# (c) 2008 by BogDan Vatra < bogdan@licentia.eu >
project(zint)
find_package(PNG)
2010-05-30 21:25:24 +04:00
set(zint_COMMON_SRCS common.c library.c render.c ps.c large.c reedsol.c gs1.c svg.c png.c)
2008-09-18 18:44:52 +04:00
set(zint_ONEDIM_SRCS code.c code128.c 2of5.c upcean.c telepen.c medical.c plessey.c rss.c)
set(zint_POSTAL_SRCS postal.c auspost.c imail.c)
2016-04-07 19:13:43 +03:00
set(zint_TWODIM_SRCS code16k.c dmatrix.c pdf417.c qr.c maxicode.c composite.c aztec.c code49.c code1.c gridmtx.c hanxin.c)
2008-09-18 18:44:52 +04:00
set(zint_SRCS ${zint_COMMON_SRCS} ${zint_ONEDIM_SRCS} ${zint_POSTAL_SRCS} ${zint_TWODIM_SRCS} )
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-10 22:39:32 +04:00
set_target_properties(zint PROPERTIES SOVERSION "${ZINT_VERSION_MAJOR}.${ZINT_VERSION_MINOR}"
VERSION ${ZINT_VERSION})
2008-09-18 18:44:52 +04:00
2009-10-06 23:03:00 +04:00
target_link_libraries(zint ${PNG_LIBRARIES} )
target_link_libraries(zint -lm)
2008-09-18 18:44:52 +04:00
2008-09-24 13:00:44 +04:00
install(TARGETS zint ${INSTALL_TARGETS_DEFAULT_ARGS} )
install(FILES zint.h DESTINATION ${INCLUDE_INSTALL_DIR} COMPONENT Devel)