---
# System prepended metadata

title: '**xmake** notes'
tags: [xmake]

---

# **xmake** notes

## Configuer toolchain use MSVC on Windows git shell

```=
xmake f --plat=windows --arch=x64 --host=windows
```

## Cofiguer debug or release mode build

### **debug** mode

```shell
xmake f -m debug
```

### **release** mode

```shell
xmake f -m release
```

## Add library

In **xmake.lua**

### static link
```lua
add_requires("vcpkg::gtest")
```
### dynamic link

```lua
add_requires("vcpkg::wxwidgets", {configs = {shared = true}})
```

###### tags: `xmake`
