mirror of https://github.com/status-im/qzxing.git
Added decoder defines into CMakeLists
CMake users can now enable or disable individualdecodings
This commit is contained in:
parent
f5c99d347b
commit
a47e28f9bd
|
@ -80,6 +80,31 @@ if(QZXING_USE_ENCODER)
|
||||||
target_compile_definitions(qzxing PUBLIC -DENABLE_ENCODER_GENERIC -DENABLE_ENCODER_QR_CODE)
|
target_compile_definitions(qzxing PUBLIC -DENABLE_ENCODER_GENERIC -DENABLE_ENCODER_QR_CODE)
|
||||||
endif(QZXING_USE_ENCODER)
|
endif(QZXING_USE_ENCODER)
|
||||||
|
|
||||||
|
if(QZXING_USE_DECODER_QR_CODE)
|
||||||
|
target_compile_definitions(qzxing PRIVATE -DENABLE_DECODER_QR_CODE)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(QZXING_USE_DECODER_1D_BARCODES)
|
||||||
|
target_compile_definitions(qzxing PRIVATE -DENABLE_DECODER_1D_BARCODES)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(QZXING_USE_DECODER_DATA_MATRIX)
|
||||||
|
target_compile_definitions(qzxing PRIVATE -DENABLE_DECODER_DATA_MATRIX)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(QZXING_USE_DECODER_AZTEC)
|
||||||
|
target_compile_definitions(qzxing PRIVATE -DENABLE_DECODER_AZTEC)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(QZXING_USE_DECODER_PDF17)
|
||||||
|
target_compile_definitions(qzxing PRIVATE -DENABLE_DECODER_PDF17)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(QZXING_USE_DECODER_1D_BARCODES)
|
||||||
|
target_compile_definitions(qzxing PRIVATE -DENABLE_DECODER_1D_BARCODES)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
|
||||||
# Change Global Definitions depending on how you want to use the library
|
# Change Global Definitions depending on how you want to use the library
|
||||||
target_compile_definitions(qzxing PUBLIC DISABLE_LIBRARY_FEATURES)
|
target_compile_definitions(qzxing PUBLIC DISABLE_LIBRARY_FEATURES)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue