COMMAND set "Path=${crea_DIR}/bin/\;"${DLL_PATH} && ${BBTK_BBFY} ${xmlfile} ${BBTK_PACKAGE_NAME} ${CMAKE_CURRENT_BINARY_DIR}/ -q
## COMMAND set Path=${DLL_PATH} && ${BBTK_BBFY} ${xmlfile} ${BBTK_PACKAGE_NAME} ${CMAKE_CURRENT_BINARY_DIR}/ -q
DEPENDS ${xmlfile}
- ${BBTK_BBFY_DEPENDENCY}
+ ${BBTK_BBFY_DEPENDENCY}
+ ${BBTK_BBPCONFIGURATOR_DEPENDENCY}
)
ELSE(WIN32)
SET(LD_LIBRARY_PATH "$ENV{LD_LIBRARY_PATH}:${LIBRARY_OUTPUT_PATH}")
IF (WIN32)
MAKE_DLL_PATH()
- ADD_CUSTOM_TARGET( ${BBTK_PACKAGE_NAME}.bbp ALL
- COMMAND set "Path=${crea_DIR}/bin/\;"${DLL_PATH} && ${BBTK_BBPCONFIGURATOR} ${CMAKE_CURRENT_SOURCE_DIR}/../bbs/boxes/ ${BBTK_PACKAGE_NAME} ${BBTK_BBS_BUILD_PATH}/
- )
+## ADD_CUSTOM_TARGET( ${BBTK_PACKAGE_NAME}.bbp ALL
+ADD_CUSTOM_COMMAND(
+## OUTPUT ${BBTK_BBS_BUILD_PATH}/${BBTK_PACKAGE_NAME}.bbp
+ TARGET bb${BBTK_PACKAGE_NAME} POST_BUILD
+ COMMAND set "Path=${crea_DIR}/bin/\;"${DLL_PATH} && ${BBTK_BBPCONFIGURATOR} ${CMAKE_CURRENT_SOURCE_DIR}/../bbs/boxes/ ${BBTK_PACKAGE_NAME} ${BBTK_BBS_BUILD_PATH}/
+## DEPENDS ${BBTK_BBPCONFIGURATOR_DEPENDENCY}
+ )
+ add_dependencies( bb${BBTK_PACKAGE_NAME} bbpConfigurator )
ELSE(WIN32)
SET(LD_LIBRARY_PATH "$ENV{LD_LIBRARY_PATH}:${LIBRARY_OUTPUT_PATH}")
- ADD_CUSTOM_TARGET( ${BBTK_PACKAGE_NAME}.bbp ALL
+ ADD_CUSTOM_TARGET( bb${BBTK_PACKAGE_NAME}.bbp ALL
COMMAND ${BBTK_BBPCONFIGURATOR} ${CMAKE_CURRENT_SOURCE_DIR}/../bbs/boxes/ ${BBTK_PACKAGE_NAME} ${BBTK_BBS_BUILD_PATH}/
)
+ add_dependencies( bb${BBTK_PACKAGE_NAME}.bbp bbpConfigurator )
ENDIF(WIN32)
-add_dependencies(${BBTK_PACKAGE_NAME}.bbp bbpConfigurator )
SET(OUTPUT_FILE ${BBTK_BBS_BUILD_PATH}/${BBTK_PACKAGE_NAME}.bbp)