INCLUDE(${bbwx_USE_FILE})
ENDIF(bbwx_FOUND)
+SET(USE_WXWIDGETS ON)
+CREA_FIND_AND_USE_LIBRARIES()
+
SET(SAMPLE bbtkSampleInsertWxBlackBoxInOwnFrame)
# main
-ADD_EXECUTABLE(${SAMPLE} ${SAMPLE})
+ADD_EXECUTABLE(${SAMPLE} WIN32 ${SAMPLE})
# Link against bbwx
-TARGET_LINK_LIBRARIES(${SAMPLE} ${bbwx_LIBRARIES})
+TARGET_LINK_LIBRARIES(${SAMPLE} ${bbwx_LIBRARIES} ${BBTK_LIBRARIES} ${WXWIDGETS_LIBRARIES})
# main
ADD_EXECUTABLE(${SAMPLE} ${SAMPLE})
+SET_TARGET_PROPERTIES(${SAMPLE} PROPERTIES LINK_FLAGS /subsystem:console )
+
# Link with bbtk
TARGET_LINK_LIBRARIES(${SAMPLE} ${BBTK_LIBRARIES})
int main(int argv, char* argc[])
{
// To track all ...
- // bbtk::MessageManager::SetMessageLevel("all",9);
+ //bbtk::MessageManager::SetMessageLevel("all",9);
try
{
SET(SAMPLE bbtkSampleOutputObserver)
+SET(USE_WXWIDGETS ON)
+CREA_FIND_AND_USE_LIBRARIES()
+
# main
-ADD_EXECUTABLE(${SAMPLE} ${SAMPLE})
+ADD_EXECUTABLE(${SAMPLE} WIN32 ${SAMPLE})
+SET_TARGET_PROPERTIES(${SAMPLE} PROPERTIES LINK_FLAGS /subsystem:console )
+
# Link against bbwx
-TARGET_LINK_LIBRARIES(${SAMPLE} ${bbwx_LIBRARIES})
+TARGET_LINK_LIBRARIES(${SAMPLE} ${bbwx_LIBRARIES} ${BBTK_LIBRARIES} ${WXWIDGETS_LIBRARIES})
bbtk::IOStatus s) // The new status of the output
{
std::cout << "== Callback function called with p="<<p->bbGetName()
- <<" o="<<o<<" s="<<bbtk::GetIOStatusString(s)<<std::endl;
+ <<" o="<<o<<" s="<<s/*bbtk::GetIOStatusString(s)*/<<std::endl;
// Cast the black box pointer into Slider pointer
bbwx::Slider::Pointer slider = boost::dynamic_pointer_cast<bbwx::Slider>(p);
bbtk::IOStatus s )
{
std::cout << "== 'OnSlider' called with p="<<p->bbGetName()
- <<" o="<<o<<" s="<<bbtk::GetIOStatusString(s)<<std::endl;
+ <<" o="<<o<<" s="<<s/*bbtk::GetIOStatusString(s)*/<<std::endl;
if ((p==mSlider1) && (o=="Out"))
{
IF(bbwx_FOUND)
INCLUDE(${bbwx_USE_FILE})
ENDIF(bbwx_FOUND)
+SET(USE_WXWIDGETS ON)
+CREA_FIND_AND_USE_LIBRARIES()
SET(SAMPLE bbtkSampleWidgetsBase)
# main
-ADD_EXECUTABLE(${SAMPLE} ${SAMPLE})
+ADD_EXECUTABLE(${SAMPLE} WIN32 ${SAMPLE})
+SET_TARGET_PROPERTIES(${SAMPLE} PROPERTIES LINK_FLAGS /subsystem:console )
+
# Link against bbwx
-TARGET_LINK_LIBRARIES(${SAMPLE} ${bbwx_LIBRARIES})
+TARGET_LINK_LIBRARIES(${SAMPLE} ${bbwx_LIBRARIES} ${BBTK_LIBRARIES} ${WXWIDGETS_LIBRARIES})