1 MESSAGE(STATUS "===============================================")
2 MESSAGE(STATUS "Setting up deduced pathes:")
3 # Black box docs relative path
4 SET(BBTK_BBDOC_REL_PATH ${BBTK_DOC_REL_PATH}/bbdoc)
5 # Doxygen docs relative path
6 SET(BBTK_DOXYGEN_REL_PATH ${BBTK_DOC_REL_PATH}/doxygen)
8 MESSAGE(STATUS "* BBTK_BBDOC_REL_PATH =${BBTK_BBDOC_REL_PATH}")
9 MESSAGE(STATUS "* BBTK_DOXYGEN_REL_PATH =${BBTK_DOXYGEN_REL_PATH}")
11 # Now compute BUILD TREE **ABSOLUTE PATHS**
12 SET(BBTK_DOC_BUILD_PATH ${PROJECT_BINARY_DIR}/${BBTK_DOC_REL_PATH})
13 SET(BBTK_BBDOC_BUILD_PATH ${PROJECT_BINARY_DIR}/${BBTK_BBDOC_REL_PATH})
14 SET(BBTK_DOXYGEN_BUILD_PATH ${PROJECT_BINARY_DIR}/${BBTK_DOXYGEN_REL_PATH})
15 SET(BBTK_BBS_BUILD_PATH ${PROJECT_BINARY_DIR}/${BBTK_BBS_REL_PATH})
16 SET(BBTK_DATA_BUILD_PATH ${PROJECT_BINARY_DIR}/${BBTK_DATA_REL_PATH})
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})
24 # LG 22/10/08 : REMOVED THE **ABSOLUTE INSTALL PATH**
25 # was buggy when packaging
27 # 1) generated packages are NOT relocatables
28 # 2) they must be installed at the same prefix than bbtk
29 SET(BBTK_DOC_INSTALL_PATH ${BBTK_DOC_REL_PATH})
30 SET(BBTK_BBDOC_INSTALL_PATH ${BBTK_BBDOC_REL_PATH})
31 SET(BBTK_DOXYGEN_INSTALL_PATH ${BBTK_DOXYGEN_REL_PATH})
32 SET(BBTK_BBS_INSTALL_PATH ${BBTK_BBS_REL_PATH})
33 SET(BBTK_DATA_INSTALL_PATH ${BBTK_DATA_REL_PATH})
38 # Create build directories if necessary
39 CREA_MKDIR(${BBTK_DOC_BUILD_PATH})
40 CREA_MKDIR(${BBTK_BBDOC_BUILD_PATH})
41 CREA_MKDIR(${BBTK_DOXYGEN_BUILD_PATH})
42 CREA_MKDIR(${BBTK_BBS_BUILD_PATH})
43 CREA_MKDIR(${BBTK_DATA_BUILD_PATH})
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}")
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 ${BBTK_CMAKE_DIR})
58 #-----------------------------------------------------------------------------
61 #-----------------------------------------------------------------------------
62 # Dependencies added only the first time !
65 IF(EXISTS "${BBTK_BBI}")
66 SET(BBTK_BBI_DEPENDENCY)
67 ELSE(EXISTS "${BBTK_BBI}")
68 SET(BBTK_BBI_DEPENDENCY ${BBTK_BBI})
69 ENDIF(EXISTS "${BBTK_BBI}")
71 IF(EXISTS "${BBTK_BBS2CPP}")
72 SET(BBTK_BBS2CPP_DEPENDENCY)
73 ELSE(EXISTS "${BBTK_BBS2CPP}")
74 SET(BBTK_BBS2CPP_DEPENDENCY ${BBTK_BBS2CPP})
75 ENDIF(EXISTS "${BBTK_BBS2CPP}")
77 IF(EXISTS "${BBTK_BBFY}")
78 SET(BBTK_BBFY_DEPENDENCY)
79 ELSE(EXISTS "${BBTK_BBFY}")
80 SET(BBTK_BBFY_DEPENDENCY ${BBTK_BBFY})
81 ENDIF(EXISTS "${BBTK_BBFY}")
83 ENDIF(BBTK_CORE_PACKAGE)
84 #-----------------------------------------------------------------------------
87 MESSAGE(STATUS "===============================================")