X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=appli%2FcreaNewProject%2FNewProject%2Fdoc%2Ftemplate_WebSite%2FCMakeLists.txt;h=68152647c25471ebaf49a874cbee93cf4fb25264;hb=ca800a1a9a78f119d37d9642ea29acb7c9b9a323;hp=1927a136e95b43e3e454f8a7076c250ee3d6ebd5;hpb=ffb107c70599958fb9104057e52aa24bc2f03696;p=crea.git diff --git a/appli/creaNewProject/NewProject/doc/template_WebSite/CMakeLists.txt b/appli/creaNewProject/NewProject/doc/template_WebSite/CMakeLists.txt index 1927a13..6815264 100644 --- a/appli/creaNewProject/NewProject/doc/template_WebSite/CMakeLists.txt +++ b/appli/creaNewProject/NewProject/doc/template_WebSite/CMakeLists.txt @@ -1,9 +1,36 @@ +# --------------------------------------------------------------------- +# +# 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 "=======================================") MESSAGE(STATUS "Configuring User html doc") # Configure & install images -CREANEWPROJECT_DOC_INSTALL(template_WebSite) +USER_DOC_INSTALL_IMAGES(template_WebSite) # Configure html pages for build tree and install FILE(GLOB HTML_PAGES "." "*.html") @@ -11,62 +38,15 @@ FOREACH(page ${HTML_PAGES}) GET_FILENAME_COMPONENT(filename "${page}" NAME) CONFIGURE_FILE( ${page} - ${BBTK_DOC_BUILD_PATH}/template_WebSite/${filename} + ${${PROJECT_NAME}_DOC_BUILD_PATH}/template_WebSite/${filename} @ONLY ) # Install INSTALL( - FILES ${BBTK_DOC_BUILD_PATH}/template_WebSite/${filename} - DESTINATION ${BBTK_DOC_INSTALL_PATH}/template_WebSite + FILES ${${PROJECT_NAME}_DOC_BUILD_PATH}/template_WebSite/${filename} + DESTINATION ${${PROJECT_NAME}_DOC_INSTALL_PATH}/template_WebSite ) ENDFOREACH(page) - -#=================================================================== -# Regenerate package doc / boxes lists -# Must be made manually as: -# 1) Is useless for installers (it is to be run after install) -# 2) Can be done manually for a build tree (e.g. in bbStudio) -IF(FALSE) - -SET(INDEX_OUTPUT index-alpha.html) - -IF (WIN32) - - SET(USE_DOT TRUE) - MAKE_DLL_PATH() - - ADD_CUSTOM_COMMAND( - OUTPUT ${INDEX_OUTPUT} - COMMAND - set Path=${DLL_PATH} && cd ${BBTK_BIN_PATH} && bbRegeneratePackageDoc -a -q && bbRegenerateBoxesLists -q - - DEPENDS ${BBTK_PACKAGES_DEPS} - ) - -ELSE (WIN32) - - # MESSAGE(STATUS "PACKAGE_DEPS=${BBTK_PACKAGES_DEPS}") - - SET(LD_LIBRARY_PATH "$ENV{LD_LIBRARY_PATH}:${LIBRARY_OUTPUT_PATH}") - # MESSAGE(LD_LIBRARY_PATH=${LD_LIBRARY_PATH}) - - ADD_CUSTOM_COMMAND( - OUTPUT ${INDEX_OUTPUT} - COMMAND - - cd ${BBTK_BIN_PATH} && export LD_LIBRARY_PATH=${LD_LIBRARY_PATH} && ./bbRegeneratePackageDoc -a -q && ./bbRegenerateBoxesLists -q - - DEPENDS ${BBTK_PACKAGES_DEPS} bbRegeneratePackageDoc bbRegenerateBoxesLists - ) - -ENDIF (WIN32) - -ADD_CUSTOM_TARGET( - bbdoc ALL - DEPENDS ${INDEX_OUTPUT} - ) - -ENDIF(FALSE) MESSAGE(STATUS "=======================================")