zint/backend/CMakeLists.txt

36 lines
1.1 KiB
CMake
Raw Normal View History

2008-09-19 02:44:52 +12:00
# (c) 2008 by BogDan Vatra < bogdan@licentia.eu >
project(zint)
find_package(PNG)
find_package(Qr)
2009-01-15 22:04:32 +13:00
set(zint_COMMON_SRCS common.c library.c ps.c large.c reedsol.c gs1.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)
set(zint_POSTAL_SRCS postal.c auspost.c imail.c)
2008-11-18 21:52:43 +13:00
set(zint_TWODIM_SRCS code16k.c blockf.c dmatrix.c dm200.c pdf417.c qr.c micqr.c maxicode.c composite.c aztec.c)
2008-09-19 02:44:52 +12:00
set(zint_SRCS ${zint_COMMON_SRCS} ${zint_ONEDIM_SRCS} ${zint_POSTAL_SRCS} ${zint_TWODIM_SRCS} )
if(PNG_FOUND)
include_directories( ${PNG_INCLUDES} )
2008-09-26 23:39:06 +12:00
set(zint_SRCS ${zint_SRCS} png.c)
2008-09-19 02:44:52 +12:00
else(PNG_FOUND)
add_definitions (-DNO_PNG)
endif(PNG_FOUND)
if(QR_FOUND)
include_directories( ${QR_INCLUDES} )
else(QR_FOUND)
add_definitions (-DNO_QR)
endif(QR_FOUND)
add_library(zint SHARED ${zint_SRCS})
set_target_properties(zint PROPERTIES VERSION ${ZINT_VERSION}
SOVERSION ${ZINT_VERSION})
target_link_libraries(zint ${PNG_LIBRARIES} ${QR_LIBRARIES} )
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)