+
#---------------------------------------------------------------------------
-# CREATES THE bbtkPackage TEXT FILE
-CONFIGURE_FILE(
- ${BBTK_CMAKE_DIR}/bbtkPackage.in
- ${PROJECT_BINARY_DIR}/bbtkPackage
- @ONLY
-)
-
-IF (WIN32)
-
- INSTALL ( FILES ${PROJECT_BINARY_DIR}/bbtkPackage
- DESTINATION "" )
-
-ENDIF (WIN32)
+SET(${BBTK_PACKAGE_NAME}_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
#---------------------------------------------------------------------------
# Configure bbtk_config_build.xml.in for bbi to find the bbs
INCLUDE(${BBTK_CMAKE_DIR}/BBTKConfigureBbtkConfigXmlForBuildTree.cmake)
#-------------------------------------------------------------------------
- #
+ # WARNING :
+ # FOR THE MOMENT ONLY ONE BBTK PACKAGE PER PROJECT ALLOWED!!!
+ #
+ SET(${BBTK_PACKAGE_NAME}_BINARY_DIR ${PROJECT_BINARY_DIR})
+ # ${CMAKE_CURRENT_BINARY_DIR})
+ #-------------------------------------------------------------------------
+ #---------------------------------------------------------------------------
+ # CREATES THE bbtkPackage TEXT FILE
+ CONFIGURE_FILE(
+ ${BBTK_CMAKE_DIR}/bbtkPackage.in
+ ${${BBTK_PACKAGE_NAME}_BINARY_DIR}/bbtkPackage
+ @ONLY
+ )
+ IF (WIN32)
+ INSTALL ( FILES ${${BBTK_PACKAGE_NAME}_BINARY_DIR}/bbtkPackage
+ DESTINATION "" )
+ ENDIF (WIN32)
+ #---------------------------------------------------------------------------
+ELSE(NOT BBTK_CORE_PACKAGE)
+ SET(${BBTK_PACKAGE_NAME}_BINARY_DIR ${PROJECT_BINARY_DIR})
ENDIF(NOT BBTK_CORE_PACKAGE)
#---------------------------------------------------------------------------
-#---------------------------------------------------------------------------
-SET(${BBTK_PACKAGE_NAME}_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
-#---------------------------------------------------------------------------
+
+
#----------------------------------------------------------------------------
# USER DEFINED ADDITIONAL INCLUDE DIRS
XMLError XMLNode::writeToFile(XMLCSTR filename, const char *encoding, char nFormat) const
{
-printf("EED XMLNode::writeToFile 01\n");
+ //printf("EED XMLNode::writeToFile 01\n");
int i;
XMLSTR t=createXMLString(nFormat,&i);
FILE *f=_tfopen(filename,_T("wb"));
}
#endif
if (!fwrite(t,sizeof(XMLCHAR)*i,1,f)) return eXMLErrorCannotWriteFile;
-printf("EED XMLNode::writeToFile 02\n");
+ //printf("EED XMLNode::writeToFile 02\n");
if (fclose(f)!=0) return eXMLErrorCannotWriteFile;
free(t);
return eXMLErrorNone;