--- /dev/null
+# Installs bbCreateBox.bat/.sh
+# used to create a new user black box
+
+
+# Relative path to the data used by bbCreateBox from data root folder
+SET(bbCreateBox_DATA_REL_PATH_FROM_DATA kernel/bbCreateBox)
+
+# Configure / Install the template xml files used by bbCreateBox
+FILE(GLOB LST_XML_FILE_CREATE_BOX RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.xml )
+FOREACH( iLST ${LST_XML_FILE_CREATE_BOX})
+ CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${iLST}
+ ${BBTK_DATA_BUILD_PATH}/${bbCreateBox_DATA_REL_PATH_FROM_DATA}/${iLST}
+ COPYONLY )
+ INSTALL(FILE ${CMAKE_CURRENT_SOURCE_DIR}/${iLST}
+ DESTINATION ${BBTK_DATA_INSTALL_PATH}/${bbCreateBox_DATA_REL_PATH_FROM_DATA}
+ )
+ENDFOREACH(iLST)
+
+# Configure / Install the script bbCreateBox
+SET(bbCreatePackage_DATA_REL_PATH_FROM_BIN ../${BBTK_DATA_REL_PATH}/${bbCreateBox_DATA_REL_PATH_FROM_DATA})
+FILE(TO_NATIVE_PATH ${bbCreateBox_DATA_REL_PATH_FROM_BIN} bbCreateBox_DATA_REL_PATH_FROM_BIN)
+IF(WIN32)
+ # Build tree
+ CONFIGURE_FILE(
+ ${CMAKE_CURRENT_SOURCE_DIR}/bbCreateBox.bat.in
+ ${BBTK_BINARY_DIR}/Debug/bbCreateBox.bat
+ @ONLY IMMEDIATE
+ )
+ CONFIGURE_FILE(
+ ${CMAKE_CURRENT_SOURCE_DIR}/bbCreateBox.bat.in
+ ${BBTK_BINARY_DIR}/Release/bbCreateBox.bat
+ @ONLY IMMEDIATE
+ )
+ # install tree
+ INSTALL(
+ PROGRAMS ${BBTK_BINARY_DIR}/Debug/bbCreateBox.bat
+ DESTINATION bin
+ )
+ENDIF(WIN32)
+
+
+IF(UNIX)
+ # Build tree
+ CONFIGURE_FILE(
+ ${CMAKE_CURRENT_SOURCE_DIR}/bbCreateBox.sh.in
+ ${BBTK_BINARY_DIR}/bin/bbCreateBox
+ @ONLY IMMEDIATE
+ )
+ # Install tree
+ INSTALL(
+ PROGRAMS ${BBTK_BINARY_DIR}/bin/bbCreateBox
+ DESTINATION bin
+ )
+ENDIF(UNIX)
+
+
+
+