Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(wasm): add cmake to sdk #3057

Closed
wants to merge 1 commit into from
Closed

chore(wasm): add cmake to sdk #3057

wants to merge 1 commit into from

Conversation

kostasrim
Copy link
Contributor

  • add cmake to sdk

@kostasrim kostasrim self-assigned this May 17, 2024
Comment on lines +11 to +17
The library is header only and exported as an interface. If you want to compile
the `examples` to wasm you need to export the `CXX` env to point to the `wask-sdk`
clang variant. Then just follow the simple chore:

```
mkdir build && cd build && cmake ..
make -j8
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add an example how to export CXX to point? Just set env var?

Comment on lines +1 to +9
project(DragonflyCPPWasmSDK)

cmake_minimum_required(VERSION 3.20)

add_library(df-cpp-wasm-sdk INTERFACE)
target_include_directories(df-cpp-wasm-sdk INTERFACE ${PROJECT_SOURCE_DIR}/include)

add_executable(example examples/example.cc)
target_link_libraries(example df-cpp-wasm-sdk)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also please make it require c++ 17

@kostasrim kostasrim closed this May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants