]> Creatis software - bbtk.git/commitdiff
#3391 BBTK Feature New Normal - PlugPackage.bat windows
authorEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Thu, 16 Apr 2020 17:12:13 +0000 (19:12 +0200)
committerEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Thu, 16 Apr 2020 17:12:13 +0000 (19:12 +0200)
kernel/cmake/BBTKConfigurePackage.cmake
kernel/cmake/BBTKConfigurePackage2.cmake
kernel/cmake/PlugPackage.bat.in [new file with mode: 0644]

index 27fea041200fcfe4e6bd148130024f4c70eccf67..d51f94925ed3cc831e2e5b43a89cc3bd533db5aa 100644 (file)
@@ -75,8 +75,13 @@ IF(NOT BBTK_CORE_PACKAGE)
     @ONLY
     )
   IF (WIN32)
-    INSTALL ( FILES ${${BBTK_PACKAGE_NAME}_BINARY_DIR}/bbtkPackage
-      DESTINATION "." )
+    CONFIGURE_FILE(
+               ${BBTK_CMAKE_DIR}/PlugPackage.bat.in
+               ${${BBTK_PACKAGE_NAME}_BINARY_DIR}/PlugPackage.bat
+               COPYONLY
+    )
+    INSTALL ( FILES ${${BBTK_PACKAGE_NAME}_BINARY_DIR}/bbtkPackage      DESTINATION  "." )
+    INSTALL ( FILES ${${BBTK_PACKAGE_NAME}_BINARY_DIR}/PlugPackage.bat  DESTINATION  "." )
   ENDIF (WIN32)
   #---------------------------------------------------------------------------
 ELSE(NOT BBTK_CORE_PACKAGE)
index 4e68397cf94e7e416f97efbf1bd4b7e13d1b5e00..3e0d4781db9b8aaf0981503ee6016c0a8bacacb8 100644 (file)
@@ -82,8 +82,13 @@ IF(NOT BBTK_CORE_PACKAGE)
     @ONLY
     )
   IF (WIN32)
-    INSTALL ( FILES ${${BBTK_PACKAGE_NAME}_BINARY_DIR}/bbtkPackage
-      DESTINATION "." )
+    CONFIGURE_FILE(
+               ${BBTK_CMAKE_DIR}/PlugPackage.bat.in
+               ${${BBTK_PACKAGE_NAME}_BINARY_DIR}/PlugPackage.bat
+               COPYONLY
+    )
+    INSTALL ( FILES ${${BBTK_PACKAGE_NAME}_BINARY_DIR}/bbtkPackage      DESTINATION  "." )
+    INSTALL ( FILES ${${BBTK_PACKAGE_NAME}_BINARY_DIR}/PlugPackage.bat  DESTINATION  "." )
   ENDIF (WIN32)
   #---------------------------------------------------------------------------
 ELSE(NOT BBTK_CORE_PACKAGE)
diff --git a/kernel/cmake/PlugPackage.bat.in b/kernel/cmake/PlugPackage.bat.in
new file mode 100644 (file)
index 0000000..599df56
--- /dev/null
@@ -0,0 +1,2 @@
+bbPlugPackage  %~dp0
+pause
\ No newline at end of file