MAINT: add possibility to choose build types in `CMakeLists.txt`.

As the title says.