mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Correct NO_PNG compilation.
Correct a couple of minor omissions which prevented compiling without PNG support.
This commit is contained in:
parent
bac1bfe09b
commit
0927fa6237
@ -22,6 +22,7 @@ set_target_properties(zint PROPERTIES SOVERSION "${ZINT_VERSION_MAJOR}.${ZINT_V
|
||||
VERSION ${ZINT_VERSION})
|
||||
|
||||
target_link_libraries(zint ${PNG_LIBRARIES} )
|
||||
target_link_libraries(zint -lm)
|
||||
|
||||
install(TARGETS zint ${INSTALL_TARGETS_DEFAULT_ARGS} )
|
||||
install(FILES zint.h DESTINATION ${INCLUDE_INSTALL_DIR} COMPONENT Devel)
|
||||
|
@ -34,8 +34,8 @@
|
||||
|
||||
#ifndef NO_PNG
|
||||
#include "png.h" /* libpng header; includes zlib.h and setjmp.h */
|
||||
#include "maxipng.h" /* Maxicode shapes */
|
||||
#endif /* NO_PNG */
|
||||
#include "maxipng.h" /* Maxicode shapes */
|
||||
|
||||
#include "font.h" /* Font for human readable text */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user