# The samples
-#----JFGA ---- Por default.
-SET(USE_WT OFF)
+#----JFGA EED---- 06/10/2015
+OPTION(USE_WT "Build bbtk web" OFF)
+
+#IF(CREA_BUILD_BBTK_WEB)
+# SET(USE_WT ON)
+#ELSE(CREA_BUILD_BBTK_WEB)
+# SET(USE_WT OFF)
+#ENDIF(CREA_BUILD_BBTK_WEB)
# WARNING
TARGET_LINK_LIBRARIES(bbi bbtk)
INSTALL_TARGETS(/bin/ bbi)
-SET(SOURCES
- bbiWeb
- )
-ADD_EXECUTABLE(bbiWeb.wt MACOSX_BUNDLE ${SOURCES})
-TARGET_LINK_LIBRARIES(bbiWeb.wt bbtk)
-INSTALL_TARGETS(/bin/ bbiWeb.wt)
+IF(USE_WT)
+ SET(SOURCES bbiWeb )
+ ADD_EXECUTABLE(bbiWeb.wt MACOSX_BUNDLE ${SOURCES})
+ TARGET_LINK_LIBRARIES(bbiWeb.wt bbtk)
+ INSTALL_TARGETS(/bin/ bbiWeb.wt)
+ENDIF(USE_WT)
#include <boost/signal.hpp>
#include <boost/bind.hpp>
+//typedef boost::signals::trackable SignalObserver;
+// \BBTKWXSIG
+//===========================================================================
+
+
+//===========================================================================
+// Wt headers
+// DEFINIR LOS HEADERS Wt que se necesitan *-*-*-*-*-*-*-*-*-*
+#ifdef USE_WT
//TODO Include libs in the CMake escription
#include <Wt/WApplication>
#include <Wt/WFileUpload>
#include <Wt/WLength>
-//typedef boost::signals::trackable SignalObserver;
-// \BBTKWXSIG
-//===========================================================================
-
-//===========================================================================
-// Qt headers
-// DEFINIR LOS HEADERS Wt que se necesitan *-*-*-*-*-*-*-*-*-*
-/*
-#ifdef USE_WT
-#include "qwidget.h"
-// EO Qt headers
+#else //USE_WT
-#else //USE_QT
+#endif // EO USE_WT
-// define QWidget
-typedef void QWidget;
-typedef void QBusyCursor;
-#endif // EO USE_WXWIDGETS
-//-*-*-*-* JFGA
-*/
#ifdef USE_WT
static void ProcessPendingEvents();
+
+#ifdef USE_WT
/// Sets the parent of all bbtk windows
static void SetTopWindow(Wt::WContainerWidget*);
/// Returns the parent of all bbtk windows
static Wt::WContainerWidget* GetTopWindow();
+#endif // EO USE_WT
static void IncNbWindowsAlive();