ENDIF(BUILD_APPLICATIONS)
#-----------------------------------------------------------------------------
-
-#-----------------------------------------------------------------------------
-# bbtk_config.xml for the build tree
-#MESSAGE(ERROR "'${BBTK_BIN_PATH}'")
-IF(UNIX)
- CONFIGURE_FILE(
- ${CMAKE_CURRENT_SOURCE_DIR}/bbtk_config_build.xml.in
- ${EXECUTABLE_OUTPUT_PATH}/bbtk_config.xml
- @ONLY IMMEDIATE
- )
-ELSE(UNIX)
- SET(BBTK_BIN_PATH_OUTPUT ${EXECUTABLE_OUTPUT_PATH}/Debug )
- CONFIGURE_FILE(
- ${CMAKE_CURRENT_SOURCE_DIR}/bbtk_config_build.xml.in
- ${EXECUTABLE_OUTPUT_PATH}/Debug/bbtk_config.xml
- @ONLY IMMEDIATE
- )
- SET(BBTK_BIN_PATH_OUTPUT ${EXECUTABLE_OUTPUT_PATH}/Release )
- CONFIGURE_FILE(
- ${CMAKE_CURRENT_SOURCE_DIR}/bbtk_config_build.xml.in
- ${EXECUTABLE_OUTPUT_PATH}/Release/bbtk_config.xml
- @ONLY IMMEDIATE
- )
-ENDIF(UNIX)
-#-----------------------------------------------------------------------------
-
#-----------------------------------------------------------------------------
# Recurse into cmake folder to install files
SUBDIRS(cmake)
--- /dev/null
+#-----------------------------------------------------------------------------
+# bbtk_config.xml for the build tree
+IF(UNIX)
+ CONFIGURE_FILE(
+ ${BBTK_CMAKE_DIR}/bbtk_config_build.xml.in
+ ${EXECUTABLE_OUTPUT_PATH}/bbtk_config.xml
+ @ONLY IMMEDIATE
+ )
+ELSE(UNIX)
+ CONFIGURE_FILE(
+ ${BBTK_CMAKE_DIR}/bbtk_config_build.xml.in
+ ${EXECUTABLE_OUTPUT_PATH}/Debug/bbtk_config.xml
+ @ONLY IMMEDIATE
+ )
+ CONFIGURE_FILE(
+ ${BBTK_CMAKE_DIR}/bbtk_config_build.xml.in
+ ${EXECUTABLE_OUTPUT_PATH}/Release/bbtk_config.xml
+ @ONLY IMMEDIATE
+ )
+ENDIF(UNIX)
+#-----------------------------------------------------------------------------
#---------------------------------------------------------------------------
# If not a core package must include necessary cmake scripts
IF(NOT BBTK_CORE_PACKAGE)
-## TO DO
-INCLUDE(${BBTK_CMAKE_DIR}/BBTKBuildAllOption.cmake)
-INCLUDE(${BBTK_CMAKE_DIR}/BBTKMacros.cmake)
-INCLUDE(${BBTK_CMAKE_DIR}/BBTKFindLibraries.cmake)
-# etc.
+ #
+ INCLUDE(${BBTK_CMAKE_DIR}/BBTKBuildAllOption.cmake)
+ INCLUDE(${BBTK_CMAKE_DIR}/BBTKMacros.cmake)
+ INCLUDE(${BBTK_CMAKE_DIR}/BBTKFindLibraries.cmake)
+ #-------------------------------------------------------------------------
+ # Configure bbtk_config_build.xml.in for bbi to find the bbs
+ INCLUDE(${BBTK_CMAKE_DIR}/BBTKConfigureBbtkConfigXmlForBuildTree.cmake)
+ #-------------------------------------------------------------------------
+ #
ENDIF(NOT BBTK_CORE_PACKAGE)
#---------------------------------------------------------------------------
#---------------------------------------------------------------------------
# If not a core package
-# set the build doc option
-# and include necessary cmake scripts
+# Create the build doc options
IF(NOT BBTK_CORE_PACKAGE)
-## TO DO
-# INCLUDE(${BBTK_CMAKE_DIR}/BBTKMacros.cmake)
-# INCLUDE(${BBTK_CMAKE_DIR}/BBTKFindLibraries.cmake)
-# etc.
OPTION(BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}_HTML_DOC
"Build the bbtk package ${BBTK_PACKAGE_NAME} html documentation ?" OFF)
SWITCH_ON_IF_BUILD_ALL(BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}_HTML_DOC)
IF (BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}_HTML_DOC)
- SET(BUILD_bbtk_DOC_BBTK_PACKAGE ON)
- # INCLUDE
+ SET(BUILD_bbtk_DOC_PACKAGE ON)
ENDIF (BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}_HTML_DOC)
-
OPTION(BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}_DOXYGEN_DOC
"Build the bbtk package ${BBTK_PACKAGE_NAME} doxygen documentation ?" OFF)
SWITCH_ON_IF_BUILD_ALL(BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}_DOXYGEN_DOC)
IF (BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}_DOXYGEN_DOC)
SET(BUILD_bbtk_DOC_DOXYGEN ON)
- # INCLUDE
ENDIF (BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}_DOXYGEN_DOC)
ENDIF(NOT BBTK_CORE_PACKAGE)
#---------------------------------------------------------------------------
# Doxygen
#----------------------------------------------------------------------------
IF(BUILD_bbtk_DOC_DOXYGEN)
- SET(BBTK_PACKAGE_DOXYGEN_REL_PATH
- ${BBTK_PACKAGE_NAME}
- )
+ SET(BBTK_PACKAGE_DOXYGEN_REL_PATH ${BBTK_PACKAGE_NAME})
SUBDIRS(doxygen)
ENDIF(BUILD_bbtk_DOC_DOXYGEN)
#----------------------------------------------------------------------------
#---------------------------------------------------------------------------
IF(BUILD_bbtk_DOC_PACKAGE)
SUBDIRS(bbdoc)
- #MESSAGE(ERROR "TT")
ENDIF(BUILD_bbtk_DOC_PACKAGE)
#---------------------------------------------------------------------------
<description> Sets the search directories in the build tree </description>
<bbs_path> @BBTK_BBS_BUILD_PATH@ </bbs_path>
- <package_path>.</package_path>
+ <package_path> @EXECUTABLE_OUTPUT_PATH@ </package_path>
+# For windows
+ <package_path> @EXECUTABLE_OUTPUT_PATH@Debug </package_path>
+ <package_path> @EXECUTABLE_OUTPUT_PATH@Release </package_path>
+#
<data_path> @BBTK_DATA_ROOT@ </data_path>
<default_doc_tmp> @PROJECT_BINARY_DIR@ </default_doc_tmp>
Program: bbtk
Module: $RCSfile: bbtkConfigure.h.in,v $
Language: C++
- Date: $Date: 2008/01/22 15:02:00 $
- Version: $Revision: 1.1 $
+ Date: $Date: 2008/02/01 12:45:58 $
+ Version: $Revision: 1.2 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
/* Hardcode the path to BBTK_DATA_ROOT */
+#ifndef BBTK_DATA_ROOT
#define BBTK_DATA_ROOT "@BBTK_DATA_ROOT@"
+#endif
/* Usefull in particular for loadshared where the full path
* to the lib is needed */
/* BBTK Versioning */
/* Version number. */
+#ifndef BBTK_VERSION
#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@"
-
+#endif
#endif