11 lines
412 B
Markdown
11 lines
412 B
Markdown
|
|
# hello-world
|
||
|
|
|
||
|
|
The smallest possible Crafter project: one `main.cpp`, one `project.cpp`.
|
||
|
|
|
||
|
|
```sh
|
||
|
|
cd examples/hello-world
|
||
|
|
crafter-build
|
||
|
|
./bin/hello-x86_64-pc-linux-gnu-native/hello
|
||
|
|
```
|
||
|
|
|
||
|
|
`project.cpp` returns a `Configuration` describing the build. `GetInterfacesAndImplementations` takes lists of source-file *stems* (no extension) — the build system appends `.cpp` to implementations and `.cppm` to interfaces.
|