3 MACRO(BBTK_CREATE_PACKAGE_INCLUDE_SCRIPT BBTK_PACKAGE_NAME BBTK_PACKAGE_BBS_BOXES BBTK_PACKAGE_BBS_APPLI )
5 # Creates the file ${BBTK_PACKAGE_NAME}.bbp
6 SET(OUTPUT_FILE ${BBTK_BBS_BUILD_PATH}/${BBTK_PACKAGE_NAME}.bbp)
9 "#-----------------------------------------\n"
10 "# Include script for bbtk package '${BBTK_PACKAGE_NAME}'\n"
11 "# Automatically generated by cmake (macro BBTK_CREATE_PACKAGE_INCLUDE_SCRIPT)\n")
14 "#-----------------------------------------\n"
15 "load ${BBTK_PACKAGE_NAME}\n"
16 "#-----------------------------------------\n"
17 "package ${BBTK_PACKAGE_NAME}\n"
22 # "#-----------------------------------------\n"
23 # "include ${BBTK_PACKAGE_NAME}/boxes/*\n"
26 FOREACH(bbs ${BBTK_PACKAGE_BBS_BOXES})
29 "#-----------------------------------------\n"
30 "include ${BBTK_PACKAGE_NAME}/${bbs}\n"
33 ${CMAKE_CURRENT_SOURCE_DIR}/${bbs}
34 ${BBTK_BBS_BUILD_PATH}/${BBTK_PACKAGE_NAME}/${bbs}
37 GET_FILENAME_COMPONENT(bbs_path ${bbs} PATH)
42 FILES ${CMAKE_CURRENT_SOURCE_DIR}/${bbs}
43 # DESTINATION ${BBTK_BBS_INSTALL_PATH}/${BBTK_PACKAGE_NAME}/${bbs_path}
44 DESTINATION ${BBTK_BBS_REL_PATH}/${BBTK_PACKAGE_NAME}/${bbs_path}
48 FILES ${CMAKE_CURRENT_SOURCE_DIR}/${bbs}
49 DESTINATION ${BBTK_BBS_INSTALL_PATH}/${BBTK_PACKAGE_NAME}/${bbs_path}
50 # DESTINATION ${BBTK_BBS_REL_PATH}/${BBTK_PACKAGE_NAME}/${bbs_path}
56 "#-----------------------------------------\n"
58 "#-- EOF ----------------------------------\n"
63 # DESTINATION ${BBTK_BBS_INSTALL_PATH}
64 DESTINATION ${BBTK_BBS_REL_PATH}
69 DESTINATION ${BBTK_BBS_INSTALL_PATH}
70 # DESTINATION ${BBTK_BBS_REL_PATH}
73 # Creates the file ${BBTK_PACKAGE_NAME}-appli.bbp
74 SET(OUTPUT_FILE ${BBTK_BBS_BUILD_PATH}/${BBTK_PACKAGE_NAME}-appli.bbp)
77 "#-----------------------------------------\n"
78 "# Applications include script for bbtk package '${BBTK_PACKAGE_NAME}'\n"
79 "# Automatically generated by cmake (macro BBTK_CREATE_PACKAGE_INCLUDE_SCRIPT)\n")
82 "#-----------------------------------------\n"
83 "load ${BBTK_PACKAGE_NAME}\n"
84 "#-----------------------------------------\n"
85 "package ${BBTK_PACKAGE_NAME}\n"
87 FOREACH(bbs ${BBTK_PACKAGE_BBS_APPLI})
88 GET_FILENAME_COMPONENT(filename "${bbs}" NAME_WE)
91 "#-----------------------------------------\n"
92 "define ${filename}\n"
93 "include ${BBTK_PACKAGE_NAME}/${bbs} source\n"
97 ${CMAKE_CURRENT_SOURCE_DIR}/${bbs}
98 ${BBTK_BBS_BUILD_PATH}/${BBTK_PACKAGE_NAME}/${bbs}
101 GET_FILENAME_COMPONENT(bbs_path ${bbs} PATH)
106 FILES ${CMAKE_CURRENT_SOURCE_DIR}/${bbs}
107 # DESTINATION ${BBTK_BBS_INSTALL_PATH}/${BBTK_PACKAGE_NAME}/${bbs_path}
108 DESTINATION ${BBTK_BBS_REL_PATH}/${BBTK_PACKAGE_NAME}/${bbs_path}
112 FILES ${CMAKE_CURRENT_SOURCE_DIR}/${bbs}
113 DESTINATION ${BBTK_BBS_INSTALL_PATH}/${BBTK_PACKAGE_NAME}/${bbs_path}
114 # DESTINATION ${BBTK_BBS_REL_PATH}/${BBTK_PACKAGE_NAME}/${bbs_path}
120 "#-----------------------------------------\n"
122 "#-- EOF ----------------------------------\n"
127 # DESTINATION ${BBTK_BBS_INSTALL_PATH}
128 DESTINATION ${BBTK_BBS_REL_PATH}
133 DESTINATION ${BBTK_BBS_INSTALL_PATH}
134 # DESTINATION ${BBTK_BBS_REL_PATH}
137 # ADD_CUSTOM_TARGET(${BBTK_PACKAGE_NAME}.bbp ALL
138 # DEPENDS ${OUTPUT_FILE}
142 ENDMACRO(BBTK_CREATE_PACKAGE_INCLUDE_SCRIPT)