]> Creatis software - bbtk.git/commitdiff
2042 Feature bbpConfigurator
authorEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Fri, 26 Jul 2013 13:17:56 +0000 (15:17 +0200)
committerEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Fri, 26 Jul 2013 13:17:56 +0000 (15:17 +0200)
kernel/cmake/BBTKConfigurePackage_src.cmake

index 7afdea40a046d84494dc6d40dbbf00537b9c45d9..dc6700bf3b34a80ede1f8f4f1cedced5ca46de19 100644 (file)
@@ -124,7 +124,8 @@ FOREACH(xmlfile ${${BBTK_PACKAGE_NAME}_XML_SOURCES})
        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}")
@@ -318,17 +319,22 @@ ENDIF(CHCON_LIBRARIES)
 
 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)