#-----------------------------------------------------------------------------
# BOOST C++
-OPTION(BBTK_USE_INTERNAL_BOOST "Use the internal boost C++ library" OFF)
+SET(BBTK_SHIPPED_BOOST boost_1_35_0 CACHE INTERNAL "Shipped boost dir" FORCE)
+OPTION(BBTK_USE_SHIPPED_BOOST
+ "Use the shipped boost C++ library (${BBTK_SHIPPED_BOOST})" ON)
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
-# TO DO : FIND BOOST
-SET(USE_BOOST TRUE)
IF(USE_BOOST)
- FIND_PACKAGE(Boost REQUIRED)
- MESSAGE(STATUS "Looking for boost C++ library... - found in ${Boost_INCLUDE_DIRS}")
- INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
- LINK_DIRECTORIES( ${Boost_LIBRARY_DIRS} )
- SET(BBTK_BOOST_LIBRARIES
- boost_signals
- )
+ IF(BBTK_USE_SHIPPED_BOOST)
+ MESSAGE(STATUS "bbtk uses shipped boost C++ library (${BBTK_SHIPPED_BOOST})")
+ INCLUDE_DIRECTORIES(
+ ${PROJECT_SOURCE_DIR}/kernel/src/ThirdParty/${BBTK_SHIPPED_BOOST})
+
+
+ SET(BBTK_BOOST_LIBRARIES
+ bbtk_boost_signals
+ )
+
+ ELSE(BBTK_USE_SHIPPED_BOOST)
+ FIND_PACKAGE(Boost REQUIRED)
+ MARK_AS_ADVANCED(Boost_INCLUDE_DIR)
+ IF(Boost_FOUND)
+ MESSAGE(STATUS "Looking for boost C++ library... - found in ${Boost_INCLUDE_DIR}")
+ INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
+ LINK_DIRECTORIES( ${Boost_LIBRARY_DIRS} )
+ SET(BBTK_BOOST_LIBRARIES
+ boost_signals
+ )
+ ELSE(Boost_FOUND)
+ MESSAGE(FATAL_ERRO "boost C++ library not found - either set Boost_INCLUDE_DIR or set BBTK_USE_SHIPPED_BOOST to ON to use shipped ${BBTK_SHIPPED_BOOST}")
+ ENDIF(Boost_FOUND)
+ ENDIF(BBTK_USE_SHIPPED_BOOST)
ENDIF(USE_BOOST)
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
# BOOST
+SET(BBTK_USE_BOOST TRUE)
+
IF(BBTK_USE_BOOST)
+ SET(USE_BOOST ON CACHE BOOL "Use boost C++ library" FORCE)
SET(BBTK_LINK_LIBRARIES
${BBTK_LINK_LIBRARIES}
${BBTK_BOOST_LIBRARIES}
ENDIF(UNIX)
#-----------------------------------------------------------------------------
+MESSAGE(STATUS "bbtk link libraries = ${BBTK_LINK_LIBRARIES}")
+
#-----------------------------------------------------------------------------
# EO bbtk library dependencies
#-----------------------------------------------------------------------------
-
#-----------------------------------------------------------------------------
# bbtk library creation
#-----------------------------------------------------------------------------
# Symbols must be exported (Windows)
ADD_DEF(BBTK_EXPORT_SYMBOLS)
-ADD_DEFINITIONS(-DCHECKBOXVIEW=1)
+#ADD_DEFINITIONS(-DCHECKBOXVIEW=1)
#-----------------------------------------------------------------------------
# Sources files
-FILE(GLOB SOURCES "." "*.cxx" "*.cpp" "ThirdParty/wx/treemultictrl/*.cpp")
+FILE(GLOB SOURCES "." "*.cxx" "*.cpp")
+# "ThirdParty/wx/treemultictrl/*.cpp")
FILE(GLOB SOURCES_H "." "*.h" )
#-----------------------------------------------------------------------------
# lib definition
#-----------------------------------------------------------------------------
+#-----------------------------------------------------------------------------
+# Recurse in ThirdParty to build the needed libs
+SUBDIRS(ThirdParty)
+#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
# EOF
--- /dev/null
+#-----------------------------------------------------------------------------
+# If bbtk uses shipped boost then recurse in boost to build the needed libs
+IF(BBTK_USE_SHIPPED_BOOST)
+ SUBDIRS(${BBTK_SHIPPED_BOOST})
+ENDIF(BBTK_USE_SHIPPED_BOOST)
+#-----------------------------------------------------------------------------
Program: bbtk
Module: $RCSfile: bbtkWxGUIPackageBrowser.cxx,v $
Language: C++
- Date: $Date: 2008/04/24 10:11:28 $
- Version: $Revision: 1.5 $
+ Date: $Date: 2008/04/24 13:56:34 $
+ Version: $Revision: 1.6 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
* \brief
*/
-
+/*
#ifdef _USE_WXWIDGETS_
#define CHECKBOXVIEW 1
out.push_back(name);
out.push_back(type);
out.push_back(descr);
- /* =
- "<TR><TD style='vertical-align: top;' bgcolor=\"" + col
- +"\"><B><PRE> "+name+" </PRE></B></TD>"
- + "<TD style='vertical-align: top;' bgcolor=\""+col
- +"\"><I><PRE> "+type+" </PRE></I></TD>"
- + "<TD style='vertical-align: top;' bgcolor=\""+col
- +"\">"+descr+"</TD></TR>\n";
- */
if (iotype==0) user_defined.push_back(out);
else if (iotype==1) ubb_defined.push_back(out);
std::vector<std::vector<std::string> >::iterator hi;
for (hi=user_defined.begin();hi!=user_defined.end();++hi)
{
- /*
- wxTextCtrl* t = new wxTextCtrl(this,-1,_T("")
- ,wxDefaultPosition
- ,wxDefaultSize
- ,wxTE_READONLY
- );
- t->SetDefaultStyle(ionameattr);
- t->AppendText( std2wx((*hi)[0]) );
- grid->Add(t);
-
- t = new wxTextCtrl(this,-1,_T("")
- ,wxDefaultPosition
- ,wxDefaultSize
- ,wxTE_READONLY
- );
- t->SetDefaultStyle(iotypeattr);
- t->AppendText( std2wx((*hi)[1]) );
- grid->Add(t);
- */
grid->Add( new wxStaticText(this,-1,std2wx((*hi)[0])));
grid->Add( new wxStaticText(this,-1,std2wx((*hi)[1])));
out.push_back(name);
out.push_back(type);
out.push_back(descr);
- /* =
- "<TR><TD style='vertical-align: top;' bgcolor=\"" + col
- +"\"><B><PRE> "+name+" </PRE></B></TD>"
- + "<TD style='vertical-align: top;' bgcolor=\""+col
- +"\"><I><PRE> "+type+" </PRE></I></TD>"
- + "<TD style='vertical-align: top;' bgcolor=\""+col
- +"\">"+descr+"</TD></TR>\n";
- */
if (iotype==0) user_defined.push_back(out);
else if (iotype==1) ubb_defined.push_back(out);
// WxGUICommand* com = new WxGUICommand(this,this);
// sizer->Add(com);
- SetSizer(sizer);
+ SetSizer(sizer);
// Creates the parent window of all bbtk windows as a child of this
#endif //_USE_WXWIDGETS_
+*/
Program: bbtk
Module: $RCSfile: bbtkWxGUIPackageBrowser.h,v $
Language: C++
- Date: $Date: 2008/04/18 12:59:16 $
- Version: $Revision: 1.3 $
+ Date: $Date: 2008/04/24 13:56:34 $
+ Version: $Revision: 1.4 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
* \brief
*/
-
+/*
#ifdef _USE_WXWIDGETS_
#endif // __bbtkWxGUIPackageBrowser_h__
#endif //_USE_WXWIDGETS_
+*/