From 6fbc2075d48f49f7fc4ee9edf932951b25c0dabd Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Thu, 16 Apr 2020 19:12:13 +0200 Subject: [PATCH] #3391 BBTK Feature New Normal - PlugPackage.bat windows --- kernel/cmake/BBTKConfigurePackage.cmake | 9 +++++++-- kernel/cmake/BBTKConfigurePackage2.cmake | 9 +++++++-- kernel/cmake/PlugPackage.bat.in | 2 ++ 3 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 kernel/cmake/PlugPackage.bat.in diff --git a/kernel/cmake/BBTKConfigurePackage.cmake b/kernel/cmake/BBTKConfigurePackage.cmake index 27fea04..d51f949 100644 --- a/kernel/cmake/BBTKConfigurePackage.cmake +++ b/kernel/cmake/BBTKConfigurePackage.cmake @@ -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) diff --git a/kernel/cmake/BBTKConfigurePackage2.cmake b/kernel/cmake/BBTKConfigurePackage2.cmake index 4e68397..3e0d478 100644 --- a/kernel/cmake/BBTKConfigurePackage2.cmake +++ b/kernel/cmake/BBTKConfigurePackage2.cmake @@ -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 index 0000000..599df56 --- /dev/null +++ b/kernel/cmake/PlugPackage.bat.in @@ -0,0 +1,2 @@ +bbPlugPackage %~dp0 +pause \ No newline at end of file -- 2.47.1