Currently, I have a CMakeLists.txt file in the main folder that has the following code in it:

```
cmake_minimum_required(VERSION 3.5)

SET(CMAKE_GENERATOR "MinGW Makefiles" CACHE INTERNAL "" FORCE)
SET(CMAKE_TOOLCHAIN_FILE ${PROJECT_SOURCE_DIR}/ToolChain.cmake)

project(Blinky)

SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)

...

```

When I run it, it outputs first for Visual Studio to the source directory. When I run it the second time, it outputs the corresponding minGW makefiles but still to the source directory and not the bin folder. Is there any way to configure it to build for MinGW Makefile directly and to the correct output folder?

I'm running the script on a command line prompt with the following line of code from the source directory folder:

```
cmake CMakeLists.txt

```