1 # Installs bbCreateBox.bat/.sh
2 # used to create a new user black box
5 # Relative path to the data used by bbCreateBox from data root folder
6 SET(bbCreateBox_DATA_REL_PATH_FROM_DATA kernel/bbCreateBox)
8 # Configure / Install the template xml files used by bbCreateBox
9 FILE(GLOB LST_XML_FILE_CREATE_BOX RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.xml )
10 FOREACH( iLST ${LST_XML_FILE_CREATE_BOX})
11 CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${iLST}
12 ${BBTK_DATA_BUILD_PATH}/${bbCreateBox_DATA_REL_PATH_FROM_DATA}/${iLST}
14 INSTALL(FILE ${CMAKE_CURRENT_SOURCE_DIR}/${iLST}
15 DESTINATION ${BBTK_DATA_INSTALL_PATH}/${bbCreateBox_DATA_REL_PATH_FROM_DATA}
19 # Configure / Install the script bbCreateBox
20 SET(bbCreatePackage_DATA_REL_PATH_FROM_BIN ../${BBTK_DATA_REL_PATH}/${bbCreateBox_DATA_REL_PATH_FROM_DATA})
21 FILE(TO_NATIVE_PATH ${bbCreateBox_DATA_REL_PATH_FROM_BIN} bbCreateBox_DATA_REL_PATH_FROM_BIN)
25 ${CMAKE_CURRENT_SOURCE_DIR}/bbCreateBox.bat.in
26 ${BBTK_BINARY_DIR}/Debug/bbCreateBox.bat
30 ${CMAKE_CURRENT_SOURCE_DIR}/bbCreateBox.bat.in
31 ${BBTK_BINARY_DIR}/Release/bbCreateBox.bat
36 PROGRAMS ${BBTK_BINARY_DIR}/Debug/bbCreateBox.bat
45 ${CMAKE_CURRENT_SOURCE_DIR}/bbCreateBox.sh.in
46 ${BBTK_BINARY_DIR}/bin/bbCreateBox
51 PROGRAMS ${BBTK_BINARY_DIR}/bin/bbCreateBox