cmkr/docs/examples/basic.md

731 B

layout title permalink parent nav_order
default Minimal example /examples/basic Examples 0

Minimal example

A minimal cmake.toml project:

[project]
name = "basic"
description = "Minimal example"

[target.basic]
type = "executable"
sources = ["src/basic.cpp"]

Declares an executable target called basic with src/basic.cpp as a source file. Equivalent to CMake's add_executable(basic src/basic.cpp).

This page was automatically generated from tests/basic/cmake.toml.