See [this example](https://github.com/nanodbc/nanodbc/blob/9a96c51cad69431325ca826af11e62e0ff187c5d/CMakeLists.txt#L44-L47).