]> Creatis software - bbtk.git/blob - kernel/appli/bbCreateBox/CMakeLists.txt
*** empty log message ***
[bbtk.git] / kernel / appli / bbCreateBox / CMakeLists.txt
1 # Installs bbCreateBox.bat/.sh  
2 # used to create a new user black box
3
4
5 # Relative path to the data used by bbCreateBox from data root folder
6 SET(bbCreateBox_DATA_REL_PATH_FROM_DATA kernel/bbCreateBox)
7
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} 
13     COPYONLY )
14   INSTALL(FILE ${CMAKE_CURRENT_SOURCE_DIR}/${iLST} 
15     DESTINATION ${BBTK_DATA_INSTALL_PATH}/${bbCreateBox_DATA_REL_PATH_FROM_DATA}
16     )
17 ENDFOREACH(iLST)
18
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)
22 IF(WIN32)
23   # Build tree 
24   CONFIGURE_FILE(
25     ${CMAKE_CURRENT_SOURCE_DIR}/bbCreateBox.bat.in
26     ${BBTK_BINARY_DIR}/Debug/bbCreateBox.bat
27     @ONLY IMMEDIATE
28     )
29   CONFIGURE_FILE(
30     ${CMAKE_CURRENT_SOURCE_DIR}/bbCreateBox.bat.in
31     ${BBTK_BINARY_DIR}/Release/bbCreateBox.bat
32     @ONLY IMMEDIATE
33     )
34   # install tree
35   INSTALL(
36     PROGRAMS ${BBTK_BINARY_DIR}/Debug/bbCreateBox.bat
37     DESTINATION bin
38     )
39 ENDIF(WIN32)
40
41
42 IF(UNIX)
43   # Build tree 
44   CONFIGURE_FILE(
45     ${CMAKE_CURRENT_SOURCE_DIR}/bbCreateBox.sh.in
46     ${BBTK_BINARY_DIR}/bin/bbCreateBox
47     @ONLY IMMEDIATE
48     )
49   # Install tree
50   INSTALL(
51     PROGRAMS ${BBTK_BINARY_DIR}/bin/bbCreateBox
52     DESTINATION bin
53     )
54 ENDIF(UNIX)
55
56
57
58