#---------------------------------------------------------------------------
- #----------------------------------------------------------------------------
- # DEFINES ${PACKAGE_NAME}_AUTHOR
- # ADD_DEFINITIONS( -D${PACKAGE_NAME}_AUTHOR="${PACKAGE_AUTHOR}")
- #----------------------------------------------------------------------------
- #----------------------------------------------------------------------------
- # DEFINES ${PACKAGE_NAME}_DESCRIPTION
- # ADD_DEFINITIONS( -D${PACKAGE_NAME}_DESCRIPTION="${PACKAGE_DESCRIPTION}")
- #----------------------------------------------------------------------------
- #----------------------------------------------------------------------------
- # DEFINES ${BBTK_PACKAGE_NAME}_VERSION
- SET(${BBTK_PACKAGE_NAME}_VERSION
- "${${BBTK_PACKAGE_NAME}_MAJOR_VERSION}.${${BBTK_PACKAGE_NAME}_MINOR_VERSION}.${${BBTK_PACKAGE_NAME}_BUILD_VERSION}")
- #ADD_DEFINITIONS( -D${${BBTK_PACKAGE_NAME}_NAME}_VERSION=${${BBTK_PACKAGE_NAME}_VERSION})
- #----------------------------------------------------------------------------
#---------------------------------------------------------------------------
CONFIGURE_FILE(
${CMAKE_CURRENT_SOURCE_DIR}/header.html.in
- ${CMAKE_CURRENT_BINARY_DIR}/header.html
- )
+ ${CMAKE_CURRENT_BINARY_DIR}/header.html
+ )
+INSTALL(
+ FILES ${CMAKE_CURRENT_BINARY_DIR}/header.html
+ DESTINATION ${BBTK_BBDOC_INSTALL_PATH}/${PACKAGE_NAME}
+ )
INCLUDE(${BBTK_CMAKE_DIR}/BBTKCreatePackageBBdoc.cmake)
INCLUDE_DIRECTORIES(../${${BBTK_PACKAGE_NAME}_INCLUDE_DIRS})
#----------------------------------------------------------------------------
+#----------------------------------------------------------------------------
+# VARS CONFIGURED IN bbPackage.h
+SET(BBTK_PACKAGE_AUTHOR "\"${${BBTK_PACKAGE_NAME}_AUTHOR}\"")
+SET(BBTK_PACKAGE_DESCRIPTION "\"${${BBTK_PACKAGE_NAME}_DESCRIPTION}\"")
+SET(BBTK_PACKAGE_MAJOR_VERSION ${${BBTK_PACKAGE_NAME}_MAJOR_VERSION})
+SET(BBTK_PACKAGE_MINOR_VERSION ${${BBTK_PACKAGE_NAME}_MINOR_VERSION})
+SET(BBTK_PACKAGE_BUILD_VERSION ${${BBTK_PACKAGE_NAME}_BUILD_VERSION})
+SET(BBTK_PACKAGE_VERSION
+ "\"${${BBTK_PACKAGE_NAME}_MAJOR_VERSION}.${${BBTK_PACKAGE_NAME}_MINOR_VERSION}.${${BBTK_PACKAGE_NAME}_BUILD_VERSION}\"")
+#----------------------------------------------------------------------------
+
+#----------------------------------------------------------------------------
+
#----------------------------------------------------------------------------
# CREATES bb${BBTK_PACKAGE_NAME}Package.h
CONFIGURE_FILE(
SET(BBTK_PACKAGE_USE_GSMIS ${${BBTK_PACKAGE_NAME}_USE_GSMIS})
SET(BBTK_PACKAGE_USE_WXWIDGETS ${${BBTK_PACKAGE_NAME}_USE_WXWIDGETS})
SET(BBTK_PACKAGE_USE_PACKAGES ${${BBTK_PACKAGE_NAME}_USE_PACKAGES})
-SET(BBTK_PACKAGE_AUTHOR "\"${${BBTK_PACKAGE_NAME}_AUTHOR}\"")
-SET(BBTK_PACKAGE_DESCRIPTION "\"${${BBTK_PACKAGE_NAME}_DESCRIPTION}\"")
-SET(BBTK_PACKAGE_MAJOR_VERSION ${${BBTK_PACKAGE_NAME}_MAJOR_VERSION})
-SET(BBTK_PACKAGE_MINOR_VERSION ${${BBTK_PACKAGE_NAME}_MINOR_VERSION})
-SET(BBTK_PACKAGE_BUILD_VERSION ${${BBTK_PACKAGE_NAME}_BUILD_VERSION})
SET(BBTK_PACKAGE_INCLUDE_DIRS ${${BBTK_PACKAGE_NAME}_INCLUDE_DIRS})
SET(BBTK_PACKAGE_LIBS ${${BBTK_PACKAGE_NAME}_LIBS})
"include ${PACKAGE_NAME}-appli\n"
"#-----------------------------------------\n"
"graph ${PACKAGE_NAME} 0 0 ${DOC_OUTPUT} \"${CMAKE_CURRENT_BINARY_DIR}/header.html\" \"Package ${PACKAGE_NAME} documentation\"\n"
-#${BBTK_DOCUMENT_SCRIPTS_OUTPUT_PATH}/header.html
)
-# CONFIGURE_FILE(
-# ${OUTPUT_FILE}
-# ${BBTK_BBS_BUILD_PATH}/${BBTK_PACKAGE_NAME}/appli/make_doc_${PACKAGE_NAME}.bbs
-# COPYONLY
-# )
-# INSTALL(
-# FILES ${OUTPUT_FILE}
-# DESTINATION ${BBTK_BBS_INSTALL_PATH}/${BBTK_PACKAGE_NAME}/appli
-# )
-
+ INSTALL(
+ FILES ${OUTPUT_FILE}
+ DESTINATION ${BBTK_BBS_INSTALL_PATH}/${BBTK_PACKAGE_NAME}/appli
+ )
+
ADD_CUSTOM_COMMAND(
OUTPUT ${DOC_OUTPUT}
COMMAND
ADD_CUSTOM_TARGET(bbdoc_${PACKAGE_NAME} ALL
DEPENDS ${DOC_OUTPUT}
)
- # Install
-# INSTALL(
-# FILES ${CMAKE_CURRENT_BINARY_DIR}/${TEX_FILE}.html
-# DESTINATION ${CMAKE_INSTALL_PREFIX}/${BBTK_DOC_INSTALL_PATH}/${TEX_FILE}
-# )
+ INSTALL(
+ DIRECTORY ${BBTK_BBDOC_BUILD_PATH}/${PACKAGE_NAME}
+ DESTINATION ${BBTK_BBDOC_INSTALL_PATH}
+ )
+
+
ENDMACRO(BBTK_CREATE_PACKAGE_BBDOC NAME)
CONFIGURE_FILE(
${CMAKE_CURRENT_SOURCE_DIR}/${bbs}
${BBTK_BBS_BUILD_PATH}/${BBTK_PACKAGE_NAME}/${bbs}
- COPYONLY
- )
+ COPYONLY
+ )
+ GET_FILENAME_COMPONENT(bbs_path ${bbs} PATH)
INSTALL(
FILES ${CMAKE_CURRENT_SOURCE_DIR}/${bbs}
- DESTINATION ${BBTK_BBS_INSTALL_PATH}/${BBTK_PACKAGE_NAME}/${bbs}
+ DESTINATION ${BBTK_BBS_INSTALL_PATH}/${BBTK_PACKAGE_NAME}/${bbs_path}
)
ENDFOREACH(bbs)
${BBTK_BBS_BUILD_PATH}/${BBTK_PACKAGE_NAME}/${bbs}
COPYONLY
)
+ GET_FILENAME_COMPONENT(bbs_path ${bbs} PATH)
INSTALL(
FILES ${CMAKE_CURRENT_SOURCE_DIR}/${bbs}
- DESTINATION ${BBTK_BBS_INSTALL_PATH}/${BBTK_PACKAGE_NAME}/${bbs}
+ DESTINATION ${BBTK_BBS_INSTALL_PATH}/${BBTK_PACKAGE_NAME}/${bbs_path}
)
ENDFOREACH(bbs)
FILE(APPEND
#-----------------------------------------------------------------------------
# Dependencies added only the first time !
-IF(EXISTS ${BBTK_BBI})
- SET(BBTK_BBI_DEPENDENCY)
-ELSE(EXISTS ${BBTK_BBI})
- SET(BBTK_BBI_DEPENDENCY ${BBTK_BBI})
-ENDIF(EXISTS ${BBTK_BBI})
-
-
-IF(EXISTS ${BBTK_BBFY})
- SET(BBTK_BBFY_DEPENDENCY)
-ELSE(EXISTS ${BBTK_BBFY})
- SET(BBTK_BBFY_DEPENDENCY ${BBTK_BBFY})
-ENDIF(EXISTS ${BBTK_BBFY})
-
+IF(BBTK_CORE_PACKAGE)
+ IF(EXISTS ${BBTK_BBI})
+ SET(BBTK_BBI_DEPENDENCY)
+ ELSE(EXISTS ${BBTK_BBI})
+ SET(BBTK_BBI_DEPENDENCY ${BBTK_BBI})
+ ENDIF(EXISTS ${BBTK_BBI})
+
+
+ IF(EXISTS ${BBTK_BBFY})
+ SET(BBTK_BBFY_DEPENDENCY)
+ ELSE(EXISTS ${BBTK_BBFY})
+ SET(BBTK_BBFY_DEPENDENCY ${BBTK_BBFY})
+ ENDIF(EXISTS ${BBTK_BBFY})
+ENDIF(BBTK_CORE_PACKAGE)
#-----------------------------------------------------------------------------
#include "bb@BBTK_PACKAGE_NAME@Package.h"
BBTK_IMPLEMENT_PACKAGE(@BBTK_PACKAGE_NAME@,
- "@BBTK_PACKAGE_AUTHOR@",
- "@BBTK_PACKAGE_DESCRIPTION@",
- "@BBTK_PACKAGE_VERSION@")
+ @BBTK_PACKAGE_AUTHOR@,
+ @BBTK_PACKAGE_DESCRIPTION@,
+ @BBTK_PACKAGE_VERSION@)
Program: bbtk
Module: $RCSfile: bbtkComplexBlackBoxDescriptor.cxx,v $
Language: C++
- Date: $Date: 2008/02/08 07:39:49 $
- Version: $Revision: 1.8 $
+ Date: $Date: 2008/02/08 11:56:10 $
+ Version: $Revision: 1.9 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
std::string inc = GetScriptFileName();
if (inc.size()>0)
{
- (s) << "<TR><TD style='vertical-align: top;'><b> To use it </b></TD><TD style='vertical-align: top;'> : </TD><TD style='vertical-align: top;'> include "
- << inc << "</TD></TR>\n";
+ s << "<TR><TD style='vertical-align: top;'><b> To use it </b></TD><TD style='vertical-align: top;'> : </TD><TD style='vertical-align: top;'> include ";
+ s << inc << " <a href=\"../../../bbs/"<<inc<<"\">[source]</a>";
+ s << "</TD></TR>\n";
}