diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index ce94440..b58b0ea 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -80,6 +80,31 @@ if(QZXING_USE_ENCODER) target_compile_definitions(qzxing PUBLIC -DENABLE_ENCODER_GENERIC -DENABLE_ENCODER_QR_CODE) 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 target_compile_definitions(qzxing PUBLIC DISABLE_LIBRARY_FEATURES)