I’m pretty new to building on windows and have just spent my first day banging my head around trying to get CMake/CLion working…so bear with me. Thanks.
I’m trying to use the CMake support to build the example
GuiAppExample from the documentation for setting up CMake to create JUCE projects. I copied the example directory out of the JUCE examples folder into a new location, and then copied JUCE folder into the project folder. I’m using the command
add_subdirectory(JUCE) to load the library.
My first question is: Is copy/pasting the entire JUCE folder a sensible way to continue to do this? This seems to be the suggestion on the easiest way to get a CMake build setup running, but it seems counterintuitive to me to copy the whole JUCE folder every time.
Then, once I (seemingly) successfully created the project, I tried to run a debug build and got an error:
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x86\nmake.exe"' : return code '0x2' Stop.
Anyone with any ideas on what is happening here? Good instructions for getting this environment working? All help greatly appreciated.