#---------------------------------------------------------------------------
-# If not a core package must find bbtk and include necessary cmake scripts
+# If not a core package must include necessary cmake scripts
IF(NOT BBTK_CORE_PACKAGE)
## TO DO
-# FIND_LIBRARY(BBTK)
# INCLUDE(${BBTK_DIR}/BBTKMacros.cmake)
# INCLUDE(${BBTK_DIR}/BBTKFindLibraries.cmake)
# etc.
# Why forcing verbosity ?
# SET(CMAKE_VERBOSE_MAKEFILE TRUE)
- INCLUDE (${BBTK_DIR}/BBTKFindWX_WIN)
+ INCLUDE (${BBTK_DIR}/BBTKFindWX_WIN.cmake)
#
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}${WXWIDGETS_CXX_FLAGS}")
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS}${WXWIDGETS_EXE_LINKER_FLAGS}")
${JPG_IMAGES}
${TIF_IMAGES}
)
+ # MESSAGE(ERROR ${IMAGES})
FOREACH(image ${IMAGES})
GET_FILENAME_COMPONENT(filename "${image}" NAME)
CONFIGURE_FILE(
${image}
${PROJECT_BINARY_DIR}/${BBTK_DOC_INSTALL_PATH}/${DOC_RELATIVE_INSTALL_PATH}/${filename}
COPYONLY
- )
+ )
+ IF (WIN32)
+ CONFIGURE_FILE(
+ ${image}
+ ${CMAKE_CURRENT_BINARY_DIR}/${filename}
+ COPYONLY
+ )
+ ENDIF(WIN32)
+ # MESSAGE(ERROR "${image} (${filename}) in : ${PROJECT_BINARY_DIR}/${BBTK_DOC_INSTALL_PATH}/${DOC_RELATIVE_INSTALL_PATH}/${filename}")
ENDFOREACH(image)
INSTALL(
FILES ${IMAGES}
Program: bbtk
Module: $RCSfile: bbtkWxBlackBox.cxx,v $
Language: C++
- Date: $Date: 2008/01/22 15:41:34 $
- Version: $Revision: 1.2 $
+ Date: $Date: 2008/01/28 14:32:54 $
+ Version: $Revision: 1.3 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
+
namespace bbtk
{
Program: bbtk
Module: $RCSfile: bbtkWxBlackBox.h,v $
Language: C++
- Date: $Date: 2008/01/22 15:41:34 $
- Version: $Revision: 1.2 $
+ Date: $Date: 2008/01/28 14:32:54 $
+ Version: $Revision: 1.3 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
/// Sets the global parent of all bbtk windows
static void bbGlobalSetTopWindow(wxWindow*);
- static void bbGlobalIncNbWindowsAlive() { bbmgNbWindowsAlive++; }
+ static void bbGlobalIncNbWindowsAlive() { WxBlackBox::bbmgNbWindowsAlive++; }
static void bbGlobalDecNbWindowsAlive();
- static int bbGlobalGetNbWindowsAlive() { return bbmgNbWindowsAlive; }
- static bool bbGlobalIsSomeWindowAlive() { return (bbmgNbWindowsAlive>0);}
+ static int bbGlobalGetNbWindowsAlive() { return WxBlackBox::bbmgNbWindowsAlive; }
+ static bool bbGlobalIsSomeWindowAlive() { return (WxBlackBox::bbmgNbWindowsAlive>0);}
static void bbGlobalDecNbWindowsShown();
- static void bbGlobalIncNbWindowsShown() { bbmgNbWindowsShown++; }
- static int bbGlobalGetNbWindowsShown() { return bbmgNbWindowsShown; }
- static bool bbGlobalIsSomeWindowShown() { return (bbmgNbWindowsShown>0);}
+ static void bbGlobalIncNbWindowsShown() { WxBlackBox::bbmgNbWindowsShown++; }
+ static int bbGlobalGetNbWindowsShown() { return WxBlackBox::bbmgNbWindowsShown; }
+ static bool bbGlobalIsSomeWindowShown() { return (WxBlackBox::bbmgNbWindowsShown>0);}
private:
+IF(NOT BBTK_CORE_PACKAGE)
+# HAVE TO FIND BBTK
+ENDIF(NOT BBTK_CORE_PACKAGE)
#===========================================================================
# Include user defined package settings
description "Simple test of wx::Slider widget"
author "laurent.guigues@creatis.insa-lyon.fr"
+category "test"
load wx
new Slider slider