From d25c11eaadd6eb2638aa9aceb2e515964f5de2fb Mon Sep 17 00:00:00 2001 From: guigues Date: Mon, 17 Mar 2008 08:52:32 +0000 Subject: [PATCH] *** empty log message *** --- kernel/appli/bbCreateBox/CMakeLists.txt | 58 +++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 kernel/appli/bbCreateBox/CMakeLists.txt diff --git a/kernel/appli/bbCreateBox/CMakeLists.txt b/kernel/appli/bbCreateBox/CMakeLists.txt new file mode 100644 index 0000000..ef8dc20 --- /dev/null +++ b/kernel/appli/bbCreateBox/CMakeLists.txt @@ -0,0 +1,58 @@ +# 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) + + + + -- 2.47.1