X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fcmake%2FBBTKCreatePackageBBdoc.cmake;h=dc1c8f6e37b29b25cdf713745a2475ab1d442b34;hb=79d06fa7c6441e99291ad3a1949d241f336573d5;hp=b6145874ea707968a3d8c9a4b8f145303e77a225;hpb=b838e74e8b1e67f28442e6394f9220f41a7d546a;p=bbtk.git diff --git a/kernel/cmake/BBTKCreatePackageBBdoc.cmake b/kernel/cmake/BBTKCreatePackageBBdoc.cmake index b614587..dc1c8f6 100644 --- a/kernel/cmake/BBTKCreatePackageBBdoc.cmake +++ b/kernel/cmake/BBTKCreatePackageBBdoc.cmake @@ -1,3 +1,29 @@ + # --------------------------------------------------------------------- + # + # 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. + # ------------------------------------------------------------------------ */ + + MACRO(BBTK_CREATE_PACKAGE_BBDOC PACKAGE_NAME) # Creates output dir if it does not exist MKDIR(${BBTK_BBDOC_BUILD_PATH}/${PACKAGE_NAME}) @@ -22,10 +48,17 @@ MACRO(BBTK_CREATE_PACKAGE_BBDOC PACKAGE_NAME) "graph ${PACKAGE_NAME} 0 0 ${DOC_OUTPUT} \"${BBTK_BBDOC_BUILD_PATH}/${BBTK_PACKAGE_NAME}/header.html\" \"Package ${PACKAGE_NAME} documentation\"\n" ) + IF(WIN32) + INSTALL( + FILES ${OUTPUT_FILE} + DESTINATION ${BBTK_BBS_REL_PATH}/${BBTK_PACKAGE_NAME}/appli + ) + ELSE(WIN32) INSTALL( FILES ${OUTPUT_FILE} DESTINATION ${BBTK_BBS_INSTALL_PATH}/${BBTK_PACKAGE_NAME}/appli ) + ENDIF(WIN32) # @@ -64,11 +97,20 @@ MACRO(BBTK_CREATE_PACKAGE_BBDOC PACKAGE_NAME) DEPENDS ${DOC_OUTPUT} ) + IF(WIN32) INSTALL( DIRECTORY ${BBTK_BBDOC_BUILD_PATH}/${PACKAGE_NAME} DESTINATION ${BBTK_BBDOC_INSTALL_PATH} + #DESTINATION ${BBTK_BBDOC_REL_PATH} ) - + ELSE(WIN32) + INSTALL( + DIRECTORY ${BBTK_BBDOC_BUILD_PATH}/${PACKAGE_NAME} + #DESTINATION ${BBTK_BBDOC_INSTALL_PATH} + DESTINATION ${BBTK_BBDOC_REL_PATH} + ) + ENDIF(WIN32) + IF(NOT WIN32) # runs bbtk-make-index as a post install step # does not work on windaube