Hello all,
I am trying to make a gui application with code blocks, SFML, and Cmake but on windows I have a problem of the console window being displayed. I do not want it to be displayed.
I am using cmake to generate my project. I am generating Codeblocks Mingw32 makefiles. Once I generate those makefiles I open up the generated codeblocks project and try to change the setting from console to GUI in properties but it doesn't work.
I believe the problem is that I am setting a variable in codeblocks even though codeblocks is using Mingw32 as a tool to compile so the setting has no effect. Is there any way to set my program to be a GUI in the Cmake file?
Right now I have a workaround of using windows.h to find the console windows and hide it with this command function in my console class:
void ConsoleWindow::HideConsoleWindow (void){
//----------------------------------------------------------------------------------------------------
ShowWindow(this->CONSOLE, SW_HIDE);
}
I like how this works, but I don't like how the console pops up on the start of the program then disappears. Is there anyway I can fix this via Cmake or codeblocks?
Thanks,
Brent