The CMAKE_BUILD_TYPE. Standard types can be selected via combo box (Debug, Release, RelWithDebInfo, MinSizeRel).

Custom build types can be specified in 'Other Build Type'

Results in -DCMAKE_BUILD_TYPE=<build_type>