]> Creatis software - bbtk.git/blob - kernel/cmake/BBTKConfigurePackage_bbs.cmake
Allow user to always forget .bbs
[bbtk.git] / kernel / cmake / BBTKConfigurePackage_bbs.cmake
1
2
3 #----------------------------------------------------------------------------
4 IF(BBTK_PACKAGE_INCLUDE_ALL_BBS_BOXES) 
5   FILE(GLOB 
6     BBTK_PACKAGE_BBS_BOXES 
7     RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
8     "boxes/*.bbs"
9     )
10
11 # !! Produces a cmake seg. fault :
12 #  FILE(GLOB 
13 #    BBTK_PACKAGE_BBS_BOXES 
14 #    "boxes/"
15 #    )
16
17
18 ENDIF(BBTK_PACKAGE_INCLUDE_ALL_BBS_BOXES) 
19 #----------------------------------------------------------------------------
20
21 #----------------------------------------------------------------------------
22 IF(BBTK_PACKAGE_INCLUDE_ALL_BBS_APPLI) 
23   FILE(GLOB BBTK_PACKAGE_BBS_APPLI 
24     RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
25     "appli/*.bbs"
26     )
27 ENDIF(BBTK_PACKAGE_INCLUDE_ALL_BBS_APPLI) 
28 #----------------------------------------------------------------------------
29
30 INCLUDE(${BBTK_DIR}/BBTKCreatePackageIncludeScript.cmake)
31
32 BBTK_CREATE_PACKAGE_INCLUDE_SCRIPT(
33   "${BBTK_PACKAGE_NAME}"
34   "${BBTK_PACKAGE_BBS_BOXES}"
35   "${BBTK_PACKAGE_BBS_APPLI}"
36   )