2 #----------------------------------------------------------------------------
3 IF(${BBTK_PACKAGE_NAME}_INCLUDE_ALL_BBS_BOXES)
5 ${BBTK_PACKAGE_NAME}_BBS_BOXES
6 RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
10 # !! Produces a cmake seg. fault :
12 # ${BBTK_PACKAGE_NAME}_BBS_BOXES
17 ENDIF(${BBTK_PACKAGE_NAME}_INCLUDE_ALL_BBS_BOXES)
18 #----------------------------------------------------------------------------
20 #----------------------------------------------------------------------------
21 IF(${BBTK_PACKAGE_NAME}_INCLUDE_ALL_BBS_APPLI)
22 FILE(GLOB ${BBTK_PACKAGE_NAME}_BBS_APPLI
23 RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
26 ENDIF(${BBTK_PACKAGE_NAME}_INCLUDE_ALL_BBS_APPLI)
27 #----------------------------------------------------------------------------
29 #----------------------------------------------------------------------------
30 INCLUDE(${BBTK_CMAKE_DIR}/BBTKCreatePackageIncludeScript.cmake)
32 BBTK_CREATE_PACKAGE_INCLUDE_SCRIPT(
33 "${BBTK_PACKAGE_NAME}"
34 "${${BBTK_PACKAGE_NAME}_BBS_BOXES}"
35 "${${BBTK_PACKAGE_NAME}_BBS_APPLI}"
37 #----------------------------------------------------------------------------
40 # runs bbRegeneratePackageDoc and bbRegenerateBoxesLists
41 # as a post install step
42 # does not work on windaube
43 IF(NOT BBTK_CORE_PACKAGE)
45 "EXECUTE_PROCESS(COMMAND echo -- Executing '${BBTK_BIN_PATH}/bbPostInstallPackage ${BBTK_PACKAGE_NAME}')"
48 "EXECUTE_PROCESS(COMMAND ${BBTK_BIN_PATH}/bbPostInstallPackage ${BBTK_PACKAGE_NAME})"
50 # COMMAND cd ${BBTK_BIN_PATH} COMMAND export LD_LIBRARY_PATH=\"../lib:$ENV{LD_LIBRARY_PATH}\" COMMAND bbRegeneratePackageDoc ${BBTK_PACKAGE_NAME} COMMAND bbRegenerateBoxesLists COMMAND echo \"done\")")
51 ENDIF(NOT BBTK_CORE_PACKAGE)
55 #----------------------------------------------------------------------------
56 #---------------------------------------------------------------------------
58 # If a core package set option from bbtk global one
59 IF (BUILD_BBS_APPLI_BINARIES)
60 SET(BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}_BBS_APP OFF)
61 ELSE (BUILD_BBS_APPLI_BINARIES)
62 SET(BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}_BBS_APP OFF)
63 ENDIF (BUILD_BBS_APPLI_BINARIES)
64 ELSE(BBTK_CORE_PACKAGE)
65 # If not a core package
67 OPTION(BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}_BBS_APP
68 "Build binaries for bbs applications of package ${BBTK_PACKAGE_NAME} ?" OFF)
69 ##EED SWITCH_ON_IF_BUILD_ALL(BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}_BBS_APP)
70 ENDIF(BBTK_CORE_PACKAGE)
71 #---------------------------------------------------------------------------
74 IF (BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}_BBS_APP)
75 FOREACH(bbs ${${BBTK_PACKAGE_NAME}_BBS_APPLI})
76 GET_FILENAME_COMPONENT(name "${bbs}" NAME_WE)
79 OUTPUT ${BBTK_BIN_PATH}/${OUTPUT}
81 cd ${BBTK_BIN_PATH} && ${BBTK_BBC} ${BBTK_PACKAGE_NAME}/appli/${name}
83 ${BBTK_BBS2CPP_DEPENDENCY}
86 FILES ${BBTK_BIN_PATH}/${OUTPUT}
88 PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
92 DEPENDS ${BBTK_BIN_PATH}/${OUTPUT}
95 ENDIF (BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}_BBS_APP)
96 #----------------------------------------------------------------------------