# FeatStd CMake

#### Location of generated files

Automatically generated configuration headers are generated into `CMAKE_CURRENT_BINARY_DIR/gensrc/FeatStd` (i.e in most cases `CMAKE_BINARY_DIR/FeatStd/gensrc/FeatStd`) instead of `CMAKE_BINARY_DIR/gensrc/FeatStd`. Automatic CGI-Studio includes paths have been adapted to accommodate this change.

<div class="contents" id="bkmrk-"><div class="contents"><div class="textblock">---

</div></div></div>#### Add custom config header file

New build setting FEATSTD\_CUSTOM\_CONFIG to specifiy a custom config header file that gets included on top of generated file `CMAKE_CURRENT_BINARY_DIR/gensrc/FeatStd/Config.h`. This allows to add or override global CGI system settings (e.g. macros).

Example:

`FEATSTD_CUSTOM_CONFIG="path/to/MyConfig.h"`

MyConfig.h

```
#define FEATSTD_DEBUG_ASSERT(condition) \
    if (!(condition)) { \
        FeatStd::Internal::Generic::assert((#condition), __FILE__, __LINE__, false); \
    }
```

---