#include <bbtkConfigurationFile.h>
#include <bbtkUtilities.h>
+#include <stdlib.h>
using namespace bbtk;
+
+
//==========================================================================
int main(int argc, char **argv)
{
SET(BBTK_BBC ${BBTK_BIN_PATH}/bbc.exe)
SET(BBTK_BBI ${BBTK_BIN_PATH}/bbi.exe)
SET(BBTK_BBFY ${BBTK_BIN_PATH}/bbfy.exe)
- SET(BBTK_BBDOC ${BBTK_BIN_PATH}/bbdoc.exe)
ELSE(WIN32)
SET(BBTK_LIB_PATH lib)
SET(BBTK_BIN_PATH ${EXECUTABLE_OUTPUT_PATH})
SET(BBTK_BBS2CPP ${BBTK_BIN_PATH}/bbs2cpp)
SET(BBTK_BBC ${BBTK_BIN_PATH}/bbc)
SET(BBTK_BBFY ${BBTK_BIN_PATH}/bbfy)
- SET(BBTK_BBDOC ${BBTK_BIN_PATH}/bbdoc)
ENDIF(WIN32)
SET(BBTK_PACKAGE_LIB_PATH ${BBTK_LIB_PATH})
+MESSAGE(STATUS "* BBTK_BIN_PATH =${BBTK_BIN_PATH}")
+MESSAGE(STATUS "* BBTK_LIB_PATH =${BBTK_LIB_PATH}")
+MESSAGE(STATUS "* BBTK_PACKAGE_LIB_PATH =${BBTK_PACKAGE_LIB_PATH}")
+MESSAGE(STATUS "* BBTK_BBI =${BBTK_BBI}")
+MESSAGE(STATUS "* BBTK_BBS2CPP =${BBTK_BBS2CPP}")
+MESSAGE(STATUS "* BBTK_BBC =${BBTK_BBC}")
+MESSAGE(STATUS "* BBTK_BBFY =${BBTK_BBFY}")
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
SET(BBTK_BBS_REL_PATH share/bbtk/bbs)
SET(BBTK_DATA_REL_PATH share/bbtk/data)
ENDIF(WIN32)
+
+MESSAGE(STATUS "* BBTK_SHARE_REL_PATH =${BBTK_SHARE_REL_PATH}")
+MESSAGE(STATUS "* BBTK_DOC_REL_PATH =${BBTK_DOC_REL_PATH}")
+MESSAGE(STATUS "* BBTK_BBS_REL_PATH =${BBTK_BBS_REL_PATH}")
+MESSAGE(STATUS "* BBTK_DATA_REL_PATH =${BBTK_DATA_REL_PATH}")
+
#-----------------------------------------------------------------------------
# FROM SOURCE TREE TO DOC BUILD TREE
# AND INSTALL THEM IN BBTK DOC TREE
MACRO(BBTK_DOC_INSTALL_IMAGES DOC_RELATIVE_INSTALL_PATH)
+ MESSAGE(STATUS "* Copying png,jpg,tif images in ${BBTK_DOC_BUILD_PATH}/${DOC_RELATIVE_INSTALL_PATH}")
FILE(GLOB PNG_IMAGES "*.png")
FILE(GLOB JPG_IMAGES "*.jpg")
FILE(GLOB TIF_IMAGES "*.tif")
# Doxygen docs relative path
SET(BBTK_DOXYGEN_REL_PATH ${BBTK_DOC_REL_PATH}/doxygen)
-# Now compute BUILD TREE and INSTALL TREE **ABSOLUTE PATHS**
+MESSAGE(STATUS "* BBTK_BBDOC_REL_PATH =${BBTK_BBDOC_REL_PATH}")
+MESSAGE(STATUS "* BBTK_DOXYGEN_REL_PATH =${BBTK_DOXYGEN_REL_PATH}")
+
+# Now compute BUILD TREE **ABSOLUTE PATHS**
SET(BBTK_DOC_BUILD_PATH ${PROJECT_BINARY_DIR}/${BBTK_DOC_REL_PATH})
SET(BBTK_BBDOC_BUILD_PATH ${PROJECT_BINARY_DIR}/${BBTK_BBDOC_REL_PATH})
SET(BBTK_DOXYGEN_BUILD_PATH ${PROJECT_BINARY_DIR}/${BBTK_DOXYGEN_REL_PATH})
SET(BBTK_BBS_BUILD_PATH ${PROJECT_BINARY_DIR}/${BBTK_BBS_REL_PATH})
SET(BBTK_DATA_BUILD_PATH ${PROJECT_BINARY_DIR}/${BBTK_DATA_REL_PATH})
-SET(BBTK_DOC_INSTALL_PATH ${BBTK_INSTALL_PREFIX}/${BBTK_DOC_REL_PATH})
-SET(BBTK_BBDOC_INSTALL_PATH ${BBTK_INSTALL_PREFIX}/${BBTK_BBDOC_REL_PATH})
-SET(BBTK_DOXYGEN_INSTALL_PATH ${BBTK_INSTALL_PREFIX}/${BBTK_DOXYGEN_REL_PATH})
-SET(BBTK_BBS_INSTALL_PATH ${BBTK_INSTALL_PREFIX}/${BBTK_BBS_REL_PATH})
-SET(BBTK_DATA_INSTALL_PATH ${BBTK_INSTALL_PREFIX}/${BBTK_DATA_REL_PATH})
+#SET(BBTK_DOC_INSTALL_PATH ${BBTK_INSTALL_PREFIX}/${BBTK_DOC_REL_PATH})
+#SET(BBTK_BBDOC_INSTALL_PATH ${BBTK_INSTALL_PREFIX}/${BBTK_BBDOC_REL_PATH})
+#SET(BBTK_DOXYGEN_INSTALL_PATH ${BBTK_INSTALL_PREFIX}/${BBTK_DOXYGEN_REL_PATH})
+#SET(BBTK_BBS_INSTALL_PATH ${BBTK_INSTALL_PREFIX}/${BBTK_BBS_REL_PATH})
+#SET(BBTK_DATA_INSTALL_PATH ${BBTK_INSTALL_PREFIX}/${BBTK_DATA_REL_PATH})
+
+# LG 22/10/08 : REMOVED THE **ABSOLUTE INSTALL PATH**
+# was buggy when packaging
+# consequences :
+# 1) generated packages are NOT relocatables
+# 2) they must be installed at the same prefix than bbtk
+SET(BBTK_DOC_INSTALL_PATH ${BBTK_DOC_REL_PATH})
+SET(BBTK_BBDOC_INSTALL_PATH ${BBTK_BBDOC_REL_PATH})
+SET(BBTK_DOXYGEN_INSTALL_PATH ${BBTK_DOXYGEN_REL_PATH})
+SET(BBTK_BBS_INSTALL_PATH ${BBTK_BBS_REL_PATH})
+SET(BBTK_DATA_INSTALL_PATH ${BBTK_DATA_REL_PATH})
+
+
+
# Create build directories if necessary
MKDIR(${BBTK_DOC_BUILD_PATH})
SET (LIBRARY_OUTPUT_PATH
${PROJECT_BINARY_DIR}/${LIBRARY_OUTPUT_REL_PATH})
#-----------------------------------------------------------------------------
+MESSAGE(STATUS "* EXECUTABLE_OUTPUT_PATH=${EXECUTABLE_OUTPUT_PATH}")
+MESSAGE(STATUS "* LIBRARY_OUTPUT_PATH =${LIBRARY_OUTPUT_PATH}")
#-----------------------------------------------------------------------------
# Today CMakeCreateFindPackage is copied in BBTK_CMAKE_DIR
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="content-type">
- <title>Install</title>
+ <title>BBTK @BBTK_VERSION@ Install</title>
</head>
<body>
-<div style="text-align: center; font-weight: bold;"><big><big><big><small></small></big></big></big>
-<div style="text-align: left;">
-<div style="text-align: center;"><big><big style="font-weight: normal;"><big><big>BBTK
-build instructions
-</big></big></big></big><br>
+<div style="text-align: center;"><big>BBTK @BBTK_VERSION@
+(@BBTK_VERSION_DATE@) build instructions</big><br>
<div style="text-align: left;">
<ol id="mozToc">
<!--mozToc h1 1 h2 2 h3 3 h4 4 h5 5 h6 6-->
</span></li>
<ul>
<li><span style="font-weight: normal;">L<sub>a</sub>T<sub>e</sub>X
-to generate the pdf doc</span><br>
+to generate the pdf guides</span><br>
<span style="font-weight: normal;"></span></li>
- <li><span style="font-weight: normal;">tth to generate the html doc</span></li>
+ <li><span style="font-weight: normal;">tth to generate the html
+guides<br>
+ </span></li>
<li><span style="font-weight: normal;">itk to compile packages itk,
itkvtk</span></li>
<li><span style="font-weight: normal;">vtk to compile package vtk,
wxvtk</span></li>
+ <li><span style="font-weight: normal;">doxygen to build the sources
+documentation</span></li>
+ <li><span style="font-weight: normal;">graphviz/dot to generate the
+packages doc with pipeline graphs<br>
+ </span></li>
<ul>
</ul>
</ul>
style="font-weight: normal;">Known working configurations</span></small></small></big></big></big></h2>
<big><big><big><small><small><span style="font-weight: normal;"> <small>
- gcc: <br>
+ 4.3.0 (Fedora Core 9)<br>
</small></span></small></small></big></big></big><big><big><small><small><span
style="font-weight: normal;"></span></small></small></big></big><big><big><small><small><span
style="font-weight: normal;">
</span><span style="font-weight: normal;"><span
style="font-style: italic;"></span><span style="font-style: italic;">
Type 'c' <span style="color: rgb(204, 102, 0);">many
-times</span> (untill no area is flagged with a '*' -Linux- nor
-highlighted in red -Windows- then type 'g', to generate.</span><br>
+times</span> until no area is flagged with a '*' and three times more
+then type 'g', to generate.</span><br>
> make<br>
> sudo make install<br>
Enjoy !<br>
</ul>
</ul>
Enjoy !<br>
-</div>
<div style="text-align: left;">
<hr style="width: 100%; height: 2px;"></div>
<div style="text-align: left;">
</tbody>
</table>
</div>
-</div>
</body>
</html>
Program: bbtk
Module: $RCSfile: bbtkUtilities.h,v $
Language: C++
- Date: $Date: 2008/10/17 08:18:14 $
- Version: $Revision: 1.17 $
+ Date: $Date: 2008/10/22 09:16:16 $
+ Version: $Revision: 1.18 $
=========================================================================*/
/* ---------------------------------------------------------------------
#include <cctype> // std::toupper
//#include "bbtkMessageManager.h"
+#if defined(__GNUC__) // gcc 4.3
+#include <stdlib.h>
+#endif
+
namespace bbtk
{
/// Holds various usefull methods