X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fcmake%2FBBTKSetDeducedPaths.cmake;h=bf1bf560bf0d02d56a6d69faf7305e5e51dfc078;hb=59a1da6c8c2d9108d4cf84595c7841c6371b9e52;hp=97b484d18b1ed5e65a7247c538d17d0b54f32ab6;hpb=7785d9f3ee33f106ad64a204d8cef883185180b0;p=bbtk.git diff --git a/kernel/cmake/BBTKSetDeducedPaths.cmake b/kernel/cmake/BBTKSetDeducedPaths.cmake index 97b484d..bf1bf56 100644 --- a/kernel/cmake/BBTKSetDeducedPaths.cmake +++ b/kernel/cmake/BBTKSetDeducedPaths.cmake @@ -1,27 +1,72 @@ + # --------------------------------------------------------------------- + # + # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image + # pour la SantÈ) + # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton + # Previous Authors : Laurent Guigues, Jean-Pierre Roux + # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil + # + # This software is governed by the CeCILL-B license under French law and + # abiding by the rules of distribution of free software. You can use, + # modify and/ or redistribute the software under the terms of the CeCILL-B + # license as circulated by CEA, CNRS and INRIA at the following URL + # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html + # or in the file LICENSE.txt. + # + # As a counterpart to the access to the source code and rights to copy, + # modify and redistribute granted by the license, users are provided only + # with a limited warranty and the software's author, the holder of the + # economic rights, and the successive licensors have only limited + # liability. + # + # The fact that you are presently reading this means that you have had + # knowledge of the CeCILL-B license and that you accept its terms. + # ------------------------------------------------------------------------ */ + + +MESSAGE(STATUS "===============================================") +MESSAGE(STATUS "Setting up deduced pathes:") # Black box docs relative path SET(BBTK_BBDOC_REL_PATH ${BBTK_DOC_REL_PATH}/bbdoc) # 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}) -MKDIR(${BBTK_BBDOC_BUILD_PATH}) -MKDIR(${BBTK_DOXYGEN_BUILD_PATH}) -MKDIR(${BBTK_BBS_BUILD_PATH}) -MKDIR(${BBTK_DATA_BUILD_PATH}) +CREA_MKDIR(${BBTK_DOC_BUILD_PATH}) +CREA_MKDIR(${BBTK_BBDOC_BUILD_PATH}) +CREA_MKDIR(${BBTK_DOXYGEN_BUILD_PATH}) +CREA_MKDIR(${BBTK_BBS_BUILD_PATH}) +CREA_MKDIR(${BBTK_DATA_BUILD_PATH}) #----------------------------------------------------------------------------- SET (EXECUTABLE_OUTPUT_PATH @@ -29,6 +74,8 @@ SET (EXECUTABLE_OUTPUT_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 @@ -59,9 +106,17 @@ IF(BBTK_CORE_PACKAGE) SET(BBTK_BBFY_DEPENDENCY ${BBTK_BBFY}) ENDIF(EXISTS "${BBTK_BBFY}") + IF(EXISTS "${BBTK_BBPCONFIGURATOR}") + SET(BBTK_BBPCONFIGURATOR_DEPENDENCY) + ELSE(EXISTS "${BBTK_BBPCONFIGURATOR}") + SET(BBTK_BBPCONFIGURATOR_DEPENDENCY ${BBTK_BBPCONFIGURATOR}) + ENDIF(EXISTS "${BBTK_BBPCONFIGURATOR}") + + ENDIF(BBTK_CORE_PACKAGE) #----------------------------------------------------------------------------- +MESSAGE(STATUS "===============================================")