Skip to content

Commit

Permalink
chore: cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
Sec-ant committed Oct 6, 2024
1 parent 8bd5fc1 commit 067a9db
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ zxing_add_package_stb()

# Set C++ standard
set(CMAKE_CXX_STANDARD 20)

# Disable examples
option(ZXING_EXAMPLES "Build the example barcode reader/writer applications" OFF)
# Build options
option(ZXING_WRITERS "Build with writer support (encoders)" ON)
option(ZXING_READERS "Build with reader support (decoders)" ON)
set(ZXING_WRITERS "OLD" CACHE STRING "Build with old and/or new writer (encoder) backend (OFF/ON/OLD/NEW/BOTH)")

# Build environment
set(ZXING_EMSCRIPTEN_ENVIRONMENT "web,worker" CACHE STRING "Optimize build for given emscripten runtime environment (web/node/shell/worker)")
Expand Down

0 comments on commit 067a9db

Please sign in to comment.