Skip to content

Commit

Permalink
Change the documentation regarding downloading tolc to be the same as…
Browse files Browse the repository at this point in the history
… tolc-demo
  • Loading branch information
srydell committed Mar 9, 2022
1 parent 8e14028 commit 3034ae3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docs/public/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,18 @@ FetchContent_Declare(
)
FetchContent_Populate(tolc_entry)
set(tolc_DIR ${tolc_entry_SOURCE_DIR}/lib/cmake/tolc)
find_package(
tolc
CONFIG
PATHS
${tolc_entry_SOURCE_DIR}
REQUIRED)
REQUIRED
)
tolc_create_bindings(
TARGET MyLib
LANGUAGE wasm
OUTPUT wasm-bindings)
OUTPUT wasm-bindings
)
```

Assuming your library is called `MyLib`, and the bindings should be generated to the directory `wasm-bindings`.
Expand Down

0 comments on commit 3034ae3

Please sign in to comment.