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

index 252896084804c310fd4ea389f8704a4237507038..080c02fe66504ba7d4e206bcc819b7a0d35300ef 100644 (file)
@@ -316,27 +316,30 @@ ENDIF(CHCON_LIBRARIES)
 
   IF (WIN32)
     MAKE_DLL_PATH()
- #   SET(command00 Path=c:/creatis/dlls__RR__%WXWIN%/lib/vc_dll/__RR__%VTK_DIR%__RR__%ITK_DIR%/../../bin/__RR__%PATH%)
- #   STRING(REPLACE "__RR__" "\;" SETPATH ${command00} )
- #   SET(SETPATH set ${command0} &&)
-
-  ADD_CUSTOM_COMMAND( 
+    ADD_CUSTOM_COMMAND( 
         TARGET  bb${BBTK_PACKAGE_NAME} POST_BUILD
-#       COMMAND  set "Path=${crea_DIR}/bin/\;"${DLL_PATH} && $(OutDir)/bbpConfigurator.exe ${CMAKE_CURRENT_SOURCE_DIR}/boxes/  ${BBTK_PACKAGE_NAME}  ${BBTK_BBS_BUILD_PATH}/
-       COMMAND  set "Path=${crea_DIR}/bin/\;"${DLL_PATH} && ${BBTK_BBPCONFIGURATOR} ${CMAKE_CURRENT_SOURCE_DIR}/boxes/  ${BBTK_PACKAGE_NAME}  ${BBTK_BBS_BUILD_PATH}/
+         COMMAND  set "Path=${crea_DIR}/bin/\;"${DLL_PATH} && ${BBTK_BBPCONFIGURATOR} ${CMAKE_CURRENT_SOURCE_DIR}/../bbs/boxes/  ${BBTK_PACKAGE_NAME}  ${BBTK_BBS_BUILD_PATH}/
     ) 
   ELSE(WIN32)
     SET(LD_LIBRARY_PATH "$ENV{LD_LIBRARY_PATH}:${LIBRARY_OUTPUT_PATH}")
-##    ADD_CUSTOM_TARGET( bb${BBTK_PACKAGE_NAME}.bbp ALL
-####    COMMAND export LD_LIBRARY_PATH=${LD_LIBRARY_PATH} && ${BBTK_BBPCONFIGURATOR}  ${CMAKE_CURRENT_SOURCE_DIR}/boxes/  ${BBTK_PACKAGE_NAME}  ${BBTK_BBS_BUILD_PATH}/
-##      COMMAND  ${BBTK_BBPCONFIGURATOR} ${CMAKE_CURRENT_SOURCE_DIR}/boxes/  ${BBTK_PACKAGE_NAME}  ${BBTK_BBS_BUILD_PATH}/
-##    ) 
-
-  ADD_CUSTOM_COMMAND( 
-        TARGET  bb${BBTK_PACKAGE_NAME} POST_BUILD
-         COMMAND  ${BBTK_BBPCONFIGURATOR} ${CMAKE_CURRENT_SOURCE_DIR}/boxes/  ${BBTK_PACKAGE_NAME}  ${BBTK_BBS_BUILD_PATH}/
+    ADD_CUSTOM_COMMAND( 
+         TARGET  bb${BBTK_PACKAGE_NAME} POST_BUILD
+         COMMAND  ${BBTK_BBPCONFIGURATOR} ${CMAKE_CURRENT_SOURCE_DIR}/../bbs/boxes/  ${BBTK_PACKAGE_NAME}  ${BBTK_BBS_BUILD_PATH}/
     ) 
+  ENDIF(WIN32)
 
-       
+  SET(OUTPUT_FILE ${BBTK_BBS_BUILD_PATH}/${BBTK_PACKAGE_NAME}.bbp)
+  IF(WIN32)
+   INSTALL(
+     FILES ${OUTPUT_FILE}
+#    DESTINATION ${BBTK_BBS_INSTALL_PATH}
+     DESTINATION ${BBTK_BBS_REL_PATH}
+    )
+   ELSE(WIN32)
+     INSTALL(
+       FILES ${OUTPUT_FILE}
+       DESTINATION ${BBTK_BBS_INSTALL_PATH}
+#      DESTINATION ${BBTK_BBS_REL_PATH}
+     )
   ENDIF(WIN32)
 
index 91d4eaeb4cdb8315807de00dfb5ad6d164993053..342bbb2502784d51f2fec11446ef0a20a92d5e52 100644 (file)
@@ -148,19 +148,6 @@ MACRO(BBTK_CREATE_PACKAGE_INCLUDE_SCRIPT    BBTK_PACKAGE_NAME    BBTK_PACKAGE_BB
 ##      "#-- EOF ----------------------------------\n"
 ##    )
 
- IF(WIN32)
-  INSTALL(
-    FILES ${OUTPUT_FILE}
-#    DESTINATION ${BBTK_BBS_INSTALL_PATH}
-    DESTINATION ${BBTK_BBS_REL_PATH}
-    )
-ELSE(WIN32)
-  INSTALL(
-    FILES ${OUTPUT_FILE}
-    DESTINATION ${BBTK_BBS_INSTALL_PATH}
-#   DESTINATION ${BBTK_BBS_REL_PATH}
-    )
-ENDIF(WIN32)