1 # ---------------------------------------------------------------------
3 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
5 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
6 # Previous Authors : Laurent Guigues, Jean-Pierre Roux
7 # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
9 # This software is governed by the CeCILL-B license under French law and
10 # abiding by the rules of distribution of free software. You can use,
11 # modify and/ or redistribute the software under the terms of the CeCILL-B
12 # license as circulated by CEA, CNRS and INRIA at the following URL
13 # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
14 # or in the file LICENSE.txt.
16 # As a counterpart to the access to the source code and rights to copy,
17 # modify and redistribute granted by the license, users are provided only
18 # with a limited warranty and the software's author, the holder of the
19 # economic rights, and the successive licensors have only limited
22 # The fact that you are presently reading this means that you have had
23 # knowledge of the CeCILL-B license and that you accept its terms.
24 # ------------------------------------------------------------------------ */
28 #========================================================================
29 # MACRO WHICH COPIES ALL IMAGES (png, jpg, gif)
30 # FROM SOURCE TREE TO DOC BUILD TREE
31 # AND INSTALL THEM IN BBTK DOC TREE
32 MACRO(BBTK_DOC_INSTALL_IMAGES DOC_RELATIVE_INSTALL_PATH)
33 MESSAGE(STATUS "* Copying png,jpg,tif images in ${BBTK_DOC_BUILD_PATH}/${DOC_RELATIVE_INSTALL_PATH}")
34 FILE(GLOB PNG_IMAGES "*.png")
35 FILE(GLOB JPG_IMAGES "*.jpg")
36 FILE(GLOB TIF_IMAGES "*.tif")
42 # MESSAGE(ERROR ${IMAGES} )
43 FOREACH(image ${IMAGES})
44 GET_FILENAME_COMPONENT(filename "${image}" NAME)
47 ${BBTK_DOC_BUILD_PATH}/${DOC_RELATIVE_INSTALL_PATH}/${filename}
54 # ${CMAKE_CURRENT_BINARY_DIR}/${filename}
58 # MESSAGE(ERROR "${image} (${filename}) in : ${PROJECT_BINARY_DIR}/${BBTK_DOC_INSTALL_PATH}/${DOC_RELATIVE_INSTALL_PATH}/${filename}")
62 DESTINATION ${BBTK_DOC_INSTALL_PATH}/${DOC_RELATIVE_INSTALL_PATH}
64 ENDMACRO(BBTK_DOC_INSTALL_IMAGES)
65 #========================================================================
69 #========================================================================
74 FIND_PATH(DOT_DIR dot.exe PATHS $ENV{PATH} )
76 MESSAGE(FATAL_ERROR "Dot not found : set DOT_DIR to the folder containing dot.exe")
78 MESSAGE(STATUS "Looking for dot... - found in ${DOT_DIR}")
82 # SET(DLL_PATHA Path=${ADDITIONAL_DLL_PATH}__RR__%WXWIN%/lib/vc_dll/__RR__%VTK_DIR%__RR__%ITK_DIR%/../../bin/__RR__%PATH%__RR__${DOT_DIR})
83 SET(DLL_PATHA ${ADDITIONAL_DLL_PATH}__RR__${DOT_DIR}__RR__)
85 FOREACH(APATH $ENV{PATH})
86 SET(DLL_PATHA ${DLL_PATHA}__RR__${APATH})
88 STRING(REPLACE "__RR__" "\;" DLL_PATH ${DLL_PATHA} )
90 ENDMACRO(MAKE_DLL_PATH)
91 #========================================================================