-#cmake_minimum_required(VERSION 2.4)
+#
+# Test CMake version
+#
+CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
+#MARK_AS_ADVANCED( FORCE CMAKE_BACKWARDS_COMPATIBILITY )
+
+# for CMake 2.6 corrected behaviour (see "cmake --help-policy CMP0003")
+IF(COMMAND cmake_policy AND ${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} GREATER 4)
+ CMAKE_POLICY(SET CMP0003 NEW)
+ CMAKE_POLICY(SET CMP0005 NEW)
+ENDIF(COMMAND cmake_policy AND ${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} GREATER 4)
+
#if(COMMAND cmake_policy)
# UNCOMMENT the 3 lines 'cmake_policy(...
# If you are using cmake 2.6
# Set C preprocessor definitions
-ADD_DEF_WITH_VAL(BBTK_SHARE_REL_PATH "\"${BBTK_SHARE_REL_PATH}\"")
-ADD_DEF_WITH_VAL(BBTK_DOC_REL_PATH "\"${BBTK_DOC_REL_PATH}\"")
-ADD_DEF_WITH_VAL(BBTK_BBS_REL_PATH "\"${BBTK_BBS_REL_PATH}\"")
-#ADD_DEF_WITH_VAL(BBTK_RSC_REL_PATH "\"${BBTK_RSC_REL_PATH}\"")
-ADD_DEF_WITH_VAL(BBTK_DATA_REL_PATH "\"${BBTK_DATA_REL_PATH}\"")
+ADD_DEF_WITH_VAL(BBTK_SHARE_REL_PATH "${BBTK_SHARE_REL_PATH}")
+ADD_DEF_WITH_VAL(BBTK_DOC_REL_PATH "${BBTK_DOC_REL_PATH}")
+ADD_DEF_WITH_VAL(BBTK_BBS_REL_PATH "${BBTK_BBS_REL_PATH}")
+ADD_DEF_WITH_VAL(BBTK_DATA_REL_PATH "${BBTK_DATA_REL_PATH}")
#-----------------------------------------------------------------------------
# messages compilation options
IF (BBTK_COMPILE_MESSAGES)
MACRO(BBTK_BUILD_HTML_DOC_FROM_LATEX SOURCE)
ENDMACRO(BBTK_BUILD_HTML_DOC_FROM_LATEX)
ENDIF(BUILD_BBTK_DOC AND BUILD_BBTK_DOC_GUIDES_HTML)
-ENDIF(BUILD_BBTK_DOC_GUIDES_PDF)
#-----------------------------------------------------------------------------
Program: bbtk
Module: $RCSfile: bbtkWxBlackBox.cxx,v $
Language: C++
- Date: $Date: 2008/11/13 14:46:43 $
- Version: $Revision: 1.28 $
+ Date: $Date: 2008/11/17 10:00:24 $
+ Version: $Revision: 1.29 $
=========================================================================*/
/* ---------------------------------------------------------------------
<<std::endl);
}
if ((caller==0) ||
- ((caller!=0) &&
- (caller->GetBlackBoxTo() != to))&&
- (!bbGetUpdateTransferedToParent())&&
- (!to->bbGetExecuting()))
+ ( (caller!=0) &&
+ (caller->GetBlackBoxTo() != to)&&
+ (!bbGetUpdateTransferedToParent())&&
+ (!to->bbGetExecuting())
+ )
+ )
{
bbtkDebugMessage("process",3,
" ... Transfering update order to parent"
Program: bbtk
Module: $RCSfile: bbtkConfigure.h.in,v $
Language: C++
- Date: $Date: 2008/02/01 12:45:58 $
- Version: $Revision: 1.2 $
+ Date: $Date: 2008/11/17 10:00:27 $
+ 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
#define BBTK_MAJOR_VERSION @BBTK_MAJOR_VERSION@
#define BBTK_MINOR_VERSION @BBTK_MINOR_VERSION@
#define BBTK_BUILD_VERSION @BBTK_BUILD_VERSION@
-#define BBTK_VERSION "@BBTK_VERSION@"
+#define BBTK_VERSION @BBTK_VERSION@
+#define BBTK_VERSION_STRING "@BBTK_VERSION@"
#endif
#endif