#----------------------------------------------------------------------------
# CREATES AND INSTALLS THE EXE
-set ( ${${EXE_NAME}_HAS_GUI} true )
-#set ( ${${EXE_NAME}_CONSOLE} true )
+IF (NOT ${USE_WXWIDGETS})
+ message("You are asking to create a WX application, but the flag USE_WXWIDGETS is OFF.")
+ message("Set to ON the flag USE_WXWIDGETS in the root CMakefile.txt of your project. ")
+ENDIF(NOT ${USE_WXWIDGETS})
+
+set ( ${EXE_NAME}_HAS_GUI true )
+#set ( ${EXE_NAME}_CONSOLE true )
CREA_ADD_EXECUTABLE( ${EXE_NAME} )
#----------------------------------------------------------------------------
+// For compilers that support precompilation, includes "wx/wx.h".
+#include "wx/wxprec.h"
+
+#ifdef __BORLANDC__
+#pragma hdrstop
+#endif
+
+#ifndef WX_PRECOMP
+#include <wx/wx.h>
+#endif
+
#include <wx/frame.h>
class myApp : public wxApp
{
#endif
- wxWindows *frame = new wxFrame(this , _T("My window.."));
+ wxFrame *frame = new wxFrame(NULL , -1 ,_T("My window.."));
SetTopWindow(frame);
frame->Show(true);