3 MACRO(BBTK_CREATE_PACKAGE_INCLUDE_SCRIPT BBTK_PACKAGE_NAME BBTK_PACKAGE_BBS_BOXES BBTK_PACKAGE_BBS_APPLI )
6 ## --Configure and installing bbg boxes--
7 FOREACH(bbg ${BBTK_PACKAGE_BBG_BOXES})
9 ${CMAKE_CURRENT_SOURCE_DIR}/${bbg}
10 ${BBTK_BBS_BUILD_PATH}/${BBTK_PACKAGE_NAME}/${bbg}
13 GET_FILENAME_COMPONENT(bbs_path ${bbg} PATH)
16 FILES ${CMAKE_CURRENT_SOURCE_DIR}/${bbg}
17 DESTINATION ${BBTK_BBS_REL_PATH}/${BBTK_PACKAGE_NAME}/${bbg_path}
21 FILES ${CMAKE_CURRENT_SOURCE_DIR}/${bbg}
22 DESTINATION ${BBTK_BBS_INSTALL_PATH}/${BBTK_PACKAGE_NAME}/${bbg_path}
28 ## --Configure and installing bbg appli--
29 FOREACH(bbg ${BBTK_PACKAGE_BBG_APPLI})
31 ${CMAKE_CURRENT_SOURCE_DIR}/${bbg}
32 ${BBTK_BBS_BUILD_PATH}/${BBTK_PACKAGE_NAME}/${bbg}
35 GET_FILENAME_COMPONENT(bbs_path ${bbg} PATH)
38 FILES ${CMAKE_CURRENT_SOURCE_DIR}/${bbg}
39 DESTINATION ${BBTK_BBS_REL_PATH}/${BBTK_PACKAGE_NAME}/${bbg_path}
43 FILES ${CMAKE_CURRENT_SOURCE_DIR}/${bbg}
44 DESTINATION ${BBTK_BBS_INSTALL_PATH}/${BBTK_PACKAGE_NAME}/${bbg_path}
56 ## --Configure and installing bbs boxes--
57 # --Creates the file ${BBTK_PACKAGE_NAME}.bbp--
58 SET(OUTPUT_FILE ${BBTK_BBS_BUILD_PATH}/${BBTK_PACKAGE_NAME}.bbp)
61 "#-----------------------------------------\n"
62 "# Include script for bbtk package '${BBTK_PACKAGE_NAME}'\n"
63 "# Automatically generated by cmake (macro BBTK_CREATE_PACKAGE_INCLUDE_SCRIPT)\n")
66 "#-----------------------------------------\n"
67 "load ${BBTK_PACKAGE_NAME}\n"
68 "#-----------------------------------------\n"
69 "package ${BBTK_PACKAGE_NAME}\n"
74 # "#-----------------------------------------\n"
75 # "include ${BBTK_PACKAGE_NAME}/boxes/*\n"
78 FOREACH(bbs ${BBTK_PACKAGE_BBS_BOXES})
81 "#-----------------------------------------\n"
82 "include ${BBTK_PACKAGE_NAME}/${bbs}\n"
85 ${CMAKE_CURRENT_SOURCE_DIR}/${bbs}
86 ${BBTK_BBS_BUILD_PATH}/${BBTK_PACKAGE_NAME}/${bbs}
89 GET_FILENAME_COMPONENT(bbs_path ${bbs} PATH)
94 FILES ${CMAKE_CURRENT_SOURCE_DIR}/${bbs}
95 # DESTINATION ${BBTK_BBS_INSTALL_PATH}/${BBTK_PACKAGE_NAME}/${bbs_path}
96 DESTINATION ${BBTK_BBS_REL_PATH}/${BBTK_PACKAGE_NAME}/${bbs_path}
100 FILES ${CMAKE_CURRENT_SOURCE_DIR}/${bbs}
101 DESTINATION ${BBTK_BBS_INSTALL_PATH}/${BBTK_PACKAGE_NAME}/${bbs_path}
102 # DESTINATION ${BBTK_BBS_REL_PATH}/${BBTK_PACKAGE_NAME}/${bbs_path}
109 ## --Configure and installing bbs appli--
112 "#-----------------------------------------\n"
114 "#-- EOF ----------------------------------\n"
119 # DESTINATION ${BBTK_BBS_INSTALL_PATH}
120 DESTINATION ${BBTK_BBS_REL_PATH}
125 DESTINATION ${BBTK_BBS_INSTALL_PATH}
126 # DESTINATION ${BBTK_BBS_REL_PATH}
129 # Creates the file ${BBTK_PACKAGE_NAME}-appli.bbp
130 SET(OUTPUT_FILE ${BBTK_BBS_BUILD_PATH}/${BBTK_PACKAGE_NAME}-appli.bbp)
133 "#-----------------------------------------\n"
134 "# Applications include script for bbtk package '${BBTK_PACKAGE_NAME}'\n"
135 "# Automatically generated by cmake (macro BBTK_CREATE_PACKAGE_INCLUDE_SCRIPT)\n")
138 "#-----------------------------------------\n"
139 "load ${BBTK_PACKAGE_NAME}\n"
140 "#-----------------------------------------\n"
141 "package ${BBTK_PACKAGE_NAME}\n"
144 FOREACH(bbs ${BBTK_PACKAGE_BBS_APPLI})
146 GET_FILENAME_COMPONENT(filename "${bbs}" NAME_WE)
149 "#-----------------------------------------\n"
150 "define ${filename}\n"
151 "include ${BBTK_PACKAGE_NAME}/${bbs} source\n"
156 ${CMAKE_CURRENT_SOURCE_DIR}/${bbs}
157 ${BBTK_BBS_BUILD_PATH}/${BBTK_PACKAGE_NAME}/${bbs}
160 GET_FILENAME_COMPONENT(bbs_path ${bbs} PATH)
165 FILES ${CMAKE_CURRENT_SOURCE_DIR}/${bbs}
166 # DESTINATION ${BBTK_BBS_INSTALL_PATH}/${BBTK_PACKAGE_NAME}/${bbs_path}
167 DESTINATION ${BBTK_BBS_REL_PATH}/${BBTK_PACKAGE_NAME}/${bbs_path}
171 FILES ${CMAKE_CURRENT_SOURCE_DIR}/${bbs}
172 DESTINATION ${BBTK_BBS_INSTALL_PATH}/${BBTK_PACKAGE_NAME}/${bbs_path}
173 # DESTINATION ${BBTK_BBS_REL_PATH}/${BBTK_PACKAGE_NAME}/${bbs_path}
179 "#-----------------------------------------\n"
181 "#-- EOF ----------------------------------\n"
186 # DESTINATION ${BBTK_BBS_INSTALL_PATH}
187 DESTINATION ${BBTK_BBS_REL_PATH}
192 DESTINATION ${BBTK_BBS_INSTALL_PATH}
193 # DESTINATION ${BBTK_BBS_REL_PATH}
196 # ADD_CUSTOM_TARGET(${BBTK_PACKAGE_NAME}.bbp ALL
197 # DEPENDS ${OUTPUT_FILE}
201 ENDMACRO(BBTK_CREATE_PACKAGE_INCLUDE_SCRIPT)