[MAINT] Add possibility to choose build types in `CMakeLists.txt`.

As the title says.