]> Creatis software - bbtkGEditor.git/blob - cmake/UserSetDeducedPaths.cmake
1977 bbGEditor Bug New Urgent Black boxes Input/Output text is not displayed correctl...
[bbtkGEditor.git] / cmake / UserSetDeducedPaths.cmake
1 # ---------------------------------------------------------------------
2 #
3 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image 
4 #                        pour la Santé)
5 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
6 #
7 #  This software is governed by the CeCILL-B license under French law and 
8 #  abiding by the rules of distribution of free software. You can  use, 
9 #  modify and/ or redistribute the software under the terms of the CeCILL-B 
10 #  license as circulated by CEA, CNRS and INRIA at the following URL 
11 #  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html 
12 #  or in the file LICENSE.txt.
13 #
14 #  As a counterpart to the access to the source code and  rights to copy,
15 #  modify and redistribute granted by the license, users are provided only
16 #  with a limited warranty  and the software's author,  the holder of the
17 #  economic rights,  and the successive licensors  have only  limited
18 #  liability. 
19 #
20 #  The fact that you are presently reading this means that you have had
21 #  knowledge of the CeCILL-B license and that you accept its terms.
22 # ------------------------------------------------------------------------ */  
23
24
25 MESSAGE(STATUS "===============================================")
26 MESSAGE(STATUS "Setting up deduced pathes:")
27 # Black box docs relative path
28 SET(${PROJECT_NAME}_BBDOC_REL_PATH ${${PROJECT_NAME}_DOC_REL_PATH}/bbdoc)
29 # Doxygen docs relative path
30 SET(${PROJECT_NAME}_DOXYGEN_REL_PATH ${${PROJECT_NAME}_DOC_REL_PATH}/doxygen)
31
32 MESSAGE(STATUS "* BBTK_BBDOC_REL_PATH   =${BBTK_BBDOC_REL_PATH}")
33 MESSAGE(STATUS "* BBTK_DOXYGEN_REL_PATH =${BBTK_DOXYGEN_REL_PATH}")
34
35 # Now compute BUILD TREE **ABSOLUTE PATHS**
36 SET(${PROJECT_NAME}_DOC_BUILD_PATH ${PROJECT_BINARY_DIR}/${${PROJECT_NAME}_DOC_REL_PATH})
37 SET(${PROJECT_NAME}_BBDOC_BUILD_PATH ${PROJECT_BINARY_DIR}/${${PROJECT_NAME}_BBDOC_REL_PATH})
38 SET(${PROJECT_NAME}_DOXYGEN_BUILD_PATH ${PROJECT_BINARY_DIR}/${${PROJECT_NAME}_DOXYGEN_REL_PATH})
39 SET(${PROJECT_NAME}_BBS_BUILD_PATH ${PROJECT_BINARY_DIR}/${${PROJECT_NAME}_BBS_REL_PATH})
40 SET(${PROJECT_NAME}_DATA_BUILD_PATH ${PROJECT_BINARY_DIR}/${${PROJECT_NAME}_DATA_REL_PATH})
41
42 #SET(BBTK_DOC_INSTALL_PATH ${BBTK_INSTALL_PREFIX}/${BBTK_DOC_REL_PATH})
43 #SET(BBTK_BBDOC_INSTALL_PATH ${BBTK_INSTALL_PREFIX}/${BBTK_BBDOC_REL_PATH})
44 #SET(BBTK_DOXYGEN_INSTALL_PATH ${BBTK_INSTALL_PREFIX}/${BBTK_DOXYGEN_REL_PATH})
45 #SET(BBTK_BBS_INSTALL_PATH ${BBTK_INSTALL_PREFIX}/${BBTK_BBS_REL_PATH})
46 #SET(BBTK_DATA_INSTALL_PATH ${BBTK_INSTALL_PREFIX}/${BBTK_DATA_REL_PATH})
47
48 # LG 22/10/08 : REMOVED THE **ABSOLUTE INSTALL PATH**
49 # was buggy when packaging
50 # consequences : 
51 #  1) generated packages are NOT relocatables 
52 #  2) they must be installed at the same prefix than bbtk
53 SET(${PROJECT_NAME}_DOC_INSTALL_PATH     ${${PROJECT_NAME}_DOC_REL_PATH})
54 SET(${PROJECT_NAME}_BBDOC_INSTALL_PATH   ${${PROJECT_NAME}_BBDOC_REL_PATH})
55 SET(${PROJECT_NAME}_DOXYGEN_INSTALL_PATH ${${PROJECT_NAME}_DOXYGEN_REL_PATH})
56 SET(${PROJECT_NAME}_BBS_INSTALL_PATH     ${${PROJECT_NAME}_BBS_REL_PATH})
57 SET(${PROJECT_NAME}_DATA_INSTALL_PATH    ${${PROJECT_NAME}_DATA_REL_PATH})
58
59
60
61
62 # Create build directories if necessary
63 CREA_MKDIR(${${PROJECT_NAME}_DOC_BUILD_PATH})
64 CREA_MKDIR(${${PROJECT_NAME}_BBDOC_BUILD_PATH})
65 CREA_MKDIR(${${PROJECT_NAME}_DOXYGEN_BUILD_PATH})
66 CREA_MKDIR(${${PROJECT_NAME}_BBS_BUILD_PATH})
67 CREA_MKDIR(${${PROJECT_NAME}_DATA_BUILD_PATH})
68
69 #-----------------------------------------------------------------------------
70 SET (EXECUTABLE_OUTPUT_PATH 
71   ${PROJECT_BINARY_DIR}/${EXECUTABLE_OUTPUT_REL_PATH})
72 SET (LIBRARY_OUTPUT_PATH    
73   ${PROJECT_BINARY_DIR}/${LIBRARY_OUTPUT_REL_PATH})
74 #-----------------------------------------------------------------------------
75 MESSAGE(STATUS "* EXECUTABLE_OUTPUT_PATH=${EXECUTABLE_OUTPUT_PATH}")
76 MESSAGE(STATUS "* LIBRARY_OUTPUT_PATH   =${LIBRARY_OUTPUT_PATH}")
77
78 #-----------------------------------------------------------------------------
79 # Today CMakeCreateFindPackage is copied in BBTK_CMAKE_DIR
80 # When installed as a separate project will have to find it with FIND_PACKAGE
81 SET(CMakeCreateFindPackage_DIR ${${PROJECT_NAME}_CMAKE_DIR})
82 #-----------------------------------------------------------------------------
83
84
85 MESSAGE(STATUS "===============================================")
86