3 MACRO(BBTK_CREATE_PACKAGE_INCLUDE_SCRIPT BBTK_PACKAGE_NAME BBTK_PACKAGE_BBS_BOXES BBTK_PACKAGE_BBS_APPLI )
5 SET(OUTPUT_PATH ${BBTK_BBS_INSTALL_PATH}/${BBTK_PACKAGE_NAME})
6 SET(OUTPUT_FILE ${PROJECT_BINARY_DIR}/${OUTPUT_PATH}/${BBTK_PACKAGE_NAME}.bbs)
8 # MESSAGE(ERROR "${BBTK_PACKAGE_BBS_BOXES} - ${BBTK_PACKAGE_BBS_APPLI}")
10 # Creates the file ${BBTK_PACKAGE_NAME}.bbs
13 "#-----------------------------------------\n"
14 "# Include script for bbtk package '${BBTK_PACKAGE_NAME}'\n"
15 "# Automatically generated by cmake (macro BBTK_CREATE_PACKAGE_INCLUDE_SCRIPT)\n")
18 "#-----------------------------------------\n"
19 "load ${BBTK_PACKAGE_NAME}\n"
20 "#-----------------------------------------\n"
21 "package ${BBTK_PACKAGE_NAME}\n"
23 FOREACH(bbs ${BBTK_PACKAGE_BBS_BOXES})
26 "#-----------------------------------------\n"
30 FOREACH(bbs ${BBTK_PACKAGE_BBS_APPLI})
31 GET_FILENAME_COMPONENT(filename "${bbs}" NAME_WE)
34 "#-----------------------------------------\n"
35 "define ${filename}\n"
42 "#-----------------------------------------\n"
44 "#-- EOF ----------------------------------\n"
47 # ADD_CUSTOM_TARGET(${BBTK_PACKAGE_NAME}.bbs ALL
48 # DEPENDS ${OUTPUT_FILE}
53 DESTINATION ${OUTPUT_PATH}
56 ENDMACRO(BBTK_CREATE_PACKAGE_INCLUDE_SCRIPT)