projucer doesn't build
When compiling under MinGW-w64, you are getting a lot of linker errors because you need to link against the Windows libraries that are listed in the header file of each JUCE module as mingwLibs. For instance, in juce_core.h:
Projucer parses the header file for each module:
and then adds the libraries to the linker settings:
Here is how I add these libraries to PListMerger, a very simple command line helper executable of FRUT:
https://github.com/McMartin/FRUT/blob/3052055ec4395676b9d9125b3ad77db6c8d527dc/cmake/PListMerger/CMakeLists.txt#L103-L111
MSVC with Visual Studio 2019
From https://cmake.org/cmake/help/latest/command/add_executable.html:
If WIN32 is given the property WIN32_EXECUTABLE will be set on the target created. See documentation of that target property for details.
and from https://cmake.org/cmake/help/latest/prop_tgt/WIN32_EXECUTABLE.html:
When this property is set to true the executable when linked on Windows will be created with a WinMain() entry point instead of just main().
Projucer does that by setting the proper value for the “SubSystem”: