]> Creatis software - creaMiniTools.git/blob - cmake/UserSetDeducedPaths.cmake
#3060 CreaMiniTools Bug New Normal - application rescaleSlopeIntercept not saving
[creaMiniTools.git] / cmake / UserSetDeducedPaths.cmake
1 MESSAGE(STATUS "===============================================")
2 MESSAGE(STATUS "Setting up deduced pathes:")
3 # Black box docs relative path
4 SET(${PROJECT_NAME}_BBDOC_REL_PATH ${${PROJECT_NAME}_DOC_REL_PATH}/bbdoc)
5 # Doxygen docs relative path
6 SET(${PROJECT_NAME}_DOXYGEN_REL_PATH ${${PROJECT_NAME}_DOC_REL_PATH}/doxygen)
7
8 MESSAGE(STATUS "* BBTK_BBDOC_REL_PATH   =${BBTK_BBDOC_REL_PATH}")
9 MESSAGE(STATUS "* BBTK_DOXYGEN_REL_PATH =${BBTK_DOXYGEN_REL_PATH}")
10
11 # Now compute BUILD TREE **ABSOLUTE PATHS**
12 SET(${PROJECT_NAME}_DOC_BUILD_PATH ${PROJECT_BINARY_DIR}/${${PROJECT_NAME}_DOC_REL_PATH})
13 SET(${PROJECT_NAME}_BBDOC_BUILD_PATH ${PROJECT_BINARY_DIR}/${${PROJECT_NAME}_BBDOC_REL_PATH})
14 SET(${PROJECT_NAME}_DOXYGEN_BUILD_PATH ${PROJECT_BINARY_DIR}/${${PROJECT_NAME}_DOXYGEN_REL_PATH})
15 SET(${PROJECT_NAME}_BBS_BUILD_PATH ${PROJECT_BINARY_DIR}/${${PROJECT_NAME}_BBS_REL_PATH})
16 SET(${PROJECT_NAME}_DATA_BUILD_PATH ${PROJECT_BINARY_DIR}/${${PROJECT_NAME}_DATA_REL_PATH})
17
18 #SET(BBTK_DOC_INSTALL_PATH ${BBTK_INSTALL_PREFIX}/${BBTK_DOC_REL_PATH})
19 #SET(BBTK_BBDOC_INSTALL_PATH ${BBTK_INSTALL_PREFIX}/${BBTK_BBDOC_REL_PATH})
20 #SET(BBTK_DOXYGEN_INSTALL_PATH ${BBTK_INSTALL_PREFIX}/${BBTK_DOXYGEN_REL_PATH})
21 #SET(BBTK_BBS_INSTALL_PATH ${BBTK_INSTALL_PREFIX}/${BBTK_BBS_REL_PATH})
22 #SET(BBTK_DATA_INSTALL_PATH ${BBTK_INSTALL_PREFIX}/${BBTK_DATA_REL_PATH})
23
24 # LG 22/10/08 : REMOVED THE **ABSOLUTE INSTALL PATH**
25 # was buggy when packaging
26 # consequences : 
27 #  1) generated packages are NOT relocatables 
28 #  2) they must be installed at the same prefix than bbtk
29 SET(${PROJECT_NAME}_DOC_INSTALL_PATH     ${${PROJECT_NAME}_DOC_REL_PATH})
30 SET(${PROJECT_NAME}_BBDOC_INSTALL_PATH   ${${PROJECT_NAME}_BBDOC_REL_PATH})
31 SET(${PROJECT_NAME}_DOXYGEN_INSTALL_PATH ${${PROJECT_NAME}_DOXYGEN_REL_PATH})
32 SET(${PROJECT_NAME}_BBS_INSTALL_PATH     ${${PROJECT_NAME}_BBS_REL_PATH})
33 SET(${PROJECT_NAME}_DATA_INSTALL_PATH    ${${PROJECT_NAME}_DATA_REL_PATH})
34
35
36
37
38 # Create build directories if necessary
39 CREA_MKDIR(${${PROJECT_NAME}_DOC_BUILD_PATH})
40 CREA_MKDIR(${${PROJECT_NAME}_BBDOC_BUILD_PATH})
41 CREA_MKDIR(${${PROJECT_NAME}_DOXYGEN_BUILD_PATH})
42 CREA_MKDIR(${${PROJECT_NAME}_BBS_BUILD_PATH})
43 CREA_MKDIR(${${PROJECT_NAME}_DATA_BUILD_PATH})
44
45 #-----------------------------------------------------------------------------
46 SET (EXECUTABLE_OUTPUT_PATH 
47   ${PROJECT_BINARY_DIR}/${EXECUTABLE_OUTPUT_REL_PATH})
48 SET (LIBRARY_OUTPUT_PATH    
49   ${PROJECT_BINARY_DIR}/${LIBRARY_OUTPUT_REL_PATH})
50 #-----------------------------------------------------------------------------
51 MESSAGE(STATUS "* EXECUTABLE_OUTPUT_PATH=${EXECUTABLE_OUTPUT_PATH}")
52 MESSAGE(STATUS "* LIBRARY_OUTPUT_PATH   =${LIBRARY_OUTPUT_PATH}")
53
54 #-----------------------------------------------------------------------------
55 # Today CMakeCreateFindPackage is copied in BBTK_CMAKE_DIR
56 # When installed as a separate project will have to find it with FIND_PACKAGE
57 SET(CMakeCreateFindPackage_DIR ${${PROJECT_NAME}_CMAKE_DIR})
58 #-----------------------------------------------------------------------------
59
60
61 MESSAGE(STATUS "===============================================")
62