# The samples
#OPTION(BUILD_BBTK_SAMPLES "Build bbtk samples" OFF)
#IF(BUILD_BBTK_SAMPLES)
-# ADD_SUBDIRECTORY(samples)
+ ADD_SUBDIRECTORY(samples)
#ENDIF(BUILD_BBTK_SAMPLES)
#-----------------------------------------------------------------------------
${BBTK_PACKAGE_NAME}_BBS_BOXES
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
"boxes/*.bbs"
+ "boxes/*.bbg"
)
# !! Produces a cmake seg. fault :
FILE(GLOB ${BBTK_PACKAGE_NAME}_BBS_APPLI
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
"appli/*.bbs"
+ "appli/*.bbg"
)
ENDIF(${BBTK_PACKAGE_NAME}_INCLUDE_ALL_BBS_APPLI)
#----------------------------------------------------------------------------
SET(SAMPLE bbtkSampleInsertWxBlackBoxInOwnFrame)
# main
-ADD_EXECUTABLE(${SAMPLE} WIN32 ${SAMPLE})
IF(WIN32)
+ ADD_EXECUTABLE(${SAMPLE} WIN32 ${SAMPLE})
SET_TARGET_PROPERTIES(${SAMPLE} PROPERTIES LINK_FLAGS /subsystem:console )
+ELSE(WIN32)
+ ADD_EXECUTABLE(${SAMPLE} MACOSX_BUNDLE ${SAMPLE})
ENDIF(WIN32)
# Link against bbwx
TARGET_LINK_LIBRARIES(${SAMPLE} ${BBTK_LIBRARIES} ${bbwx_LIBRARIES} ${WXWIDGETS_LIBRARIES})
CREA_FIND_AND_USE_LIBRARIES()
# main
-ADD_EXECUTABLE(${SAMPLE} WIN32 ${SAMPLE})
IF(WIN32)
+ ADD_EXECUTABLE(${SAMPLE} WIN32 ${SAMPLE})
SET_TARGET_PROPERTIES(${SAMPLE} PROPERTIES LINK_FLAGS /subsystem:console )
+ELSE(WIN32)
+ ADD_EXECUTABLE(${SAMPLE} MACOSX_BUNDLE ${SAMPLE})
ENDIF(WIN32)
+
+
# Link against bbwx
TARGET_LINK_LIBRARIES(${SAMPLE} ${bbwx_LIBRARIES} ${BBTK_LIBRARIES} ${WXWIDGETS_LIBRARIES})
SET(SAMPLE bbtkSampleWidgetsBase)
# main
-ADD_EXECUTABLE(${SAMPLE} WIN32 ${SAMPLE})
IF(WIN32)
+ ADD_EXECUTABLE(${SAMPLE} WIN32 ${SAMPLE})
SET_TARGET_PROPERTIES(${SAMPLE} PROPERTIES LINK_FLAGS /subsystem:console )
+ELSE(WIN32)
+ ADD_EXECUTABLE(${SAMPLE} MACOSX_BUNDLE ${SAMPLE})
ENDIF(WIN32)
+
# Link against bbwx
TARGET_LINK_LIBRARIES(${SAMPLE} ${bbwx_LIBRARIES} ${BBTK_LIBRARIES} ${WXWIDGETS_LIBRARIES})
//=========================================================================
void SimpleSliderDialog()
{
- std::cout << "============== Simple Slider dialog"
- << std::endl;
+ std::cout << "============== Simple Slider dialog 1" << std::endl;
try
{
bbwx::Slider::Pointer slider = bbwx::Slider::New("slider");
+ std::cout << "============== Simple Slider dialog " << std::endl;
// slider->bbGetHelp();
slider->bbSetInputWinDialog(true); // mandatory
+ std::cout << "============== Simple Slider dialog 3" << std::endl;
slider->bbExecute();
std::cout << "Slider Output = "<< slider->bbGetOutputOut() << std::endl;
}