Skip to content

Commit cbbecdb

Browse files
committed
update package target for mingw-cross builds to handle updated file locations
1 parent 36da45f commit cbbecdb

File tree

5 files changed

+29
-26
lines changed

5 files changed

+29
-26
lines changed

USER-AEAM/CMakeLists.txt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,14 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "Windows")
4949
endif()
5050
if(BUILD_MPI)
5151
add_custom_target(${mytarget} ${MAKENSIS_PATH} -V1 -DVERSION=${LAMMPS_VERSION}-MPI aeamplugin.nsis
52-
DEPENDS aeamplugin
53-
BYPRODUCTS LAMMPS-USER-AEAM-plugin-${LAMMPS_VERSION}-MPI.exe)
52+
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
53+
DEPENDS aeamplugin ${CMAKE_BINARY_DIR}/lammps.ico ${CMAKE_BINARY_DIR}/lammps-text-logo-wide.bmp ${CMAKE_BINARY_DIR}/aeamplugin.nsis
54+
BYPRODUCTS ${CMAKE_BINARY_DIR}/LAMMPS-USER-AEAM-plugin-${LAMMPS_VERSION}-MPI.exe)
5455
else()
5556
add_custom_target(${mytarget} ${MAKENSIS_PATH} -V1 -DVERSION=${LAMMPS_VERSION} aeamplugin.nsis
56-
COMMAND ${CMAKE_COMMAND} -E echo ${PWD}
57-
DEPENDS aeamplugin lammps.ico lammps-text-logo-wide.bmp aeamplugin.nsis
58-
BYPRODUCTS LAMMPS-USER-AEAM-plugin-${LAMMPS_VERSION}.exe)
57+
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
58+
DEPENDS aeamplugin ${CMAKE_BINARY_DIR}/lammps.ico ${CMAKE_BINARY_DIR}/lammps-text-logo-wide.bmp ${CMAKE_BINARY_DIR}/aeamplugin.nsis
59+
BYPRODUCTS ${CMAKE_BINARY_DIR}/LAMMPS-USER-AEAM-plugin-${LAMMPS_VERSION}.exe)
5960
endif()
6061
endif()
6162
else()

USER-AEAM/aeamplugin.nsis

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ ${If} $0 != "admin"
3131
${EndIf}
3232
!macroend
3333

34-
!define PACEPLUGIN "LAMMPS USER-AEAM Plugin ${VERSION}"
34+
!define AEAMPLUGIN "LAMMPS USER-AEAM Plugin ${VERSION}"
3535
OutFile "LAMMPS-USER-AEAM-plugin-${VERSION}.exe"
3636

37-
Name "${PACEPLUGIN}"
38-
InstallDir "$LOCALAPPDATA\${PACEPLUGIN}"
37+
Name "${AEAMPLUGIN}"
38+
InstallDir "$LOCALAPPDATA\${AEAMPLUGIN}"
3939

4040
ShowInstDetails show
4141
ShowUninstDetails show
@@ -80,7 +80,7 @@ function .onInit
8080
setShellVarContext all
8181
functionEnd
8282

83-
Section "${PACEPLUGIN}" SecPaceplugin
83+
Section "${AEAMPLUGIN}" SecPaceplugin
8484
SectionIn RO
8585
# Write LAMMPS installation bitness marker. Always use 32-bit registry view
8686
SetRegView 32
@@ -97,9 +97,9 @@ Section "${PACEPLUGIN}" SecPaceplugin
9797

9898
# Register Application and its uninstaller
9999
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\LAMMPS-USER-AEAM" \
100-
"DisplayName" "${PACEPLUGIN}"
100+
"DisplayName" "${AEAMPLUGIN}"
101101
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\LAMMPS-USER-AEAM" \
102-
"Publisher" "The LAMMPS and PACE Developers"
102+
"Publisher" "The LAMMPS and USER-AEAM Developers"
103103
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\LAMMPS-USER-AEAM" \
104104
"URLInfoAbout" "lammps.org"
105105
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\LAMMPS-USER-AEAM" \

USER-REBOMOS/CMakeLists.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,13 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "Windows")
4949
endif()
5050
if(BUILD_MPI)
5151
add_custom_target(${mytarget} ${MAKENSIS_PATH} -V1 -DVERSION=${LAMMPS_VERSION}-MPI rebomosplugin.nsis
52-
DEPENDS rebomosplugin
53-
BYPRODUCTS LAMMPS-USER-REBOMOS-plugin-${LAMMPS_VERSION}-MPI.exe)
52+
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
53+
DEPENDS rebomosplugin ${CMAKE_BINARY_DIR}/lammps.ico ${CMAKE_BINARY_DIR}/lammps-text-logo-wide.bmp ${CMAKE_BINARY_DIR}/aeamplugin.nsis
54+
BYPRODUCTS ${CMAKE_BINARY_DIR}/LAMMPS-USER-REBOMOS-plugin-${LAMMPS_VERSION}-MPI.exe)
5455
else()
5556
add_custom_target(${mytarget} ${MAKENSIS_PATH} -V1 -DVERSION=${LAMMPS_VERSION} rebomosplugin.nsis
56-
COMMAND ${CMAKE_COMMAND} -E echo ${PWD}
57-
DEPENDS rebomosplugin lammps.ico lammps-text-logo-wide.bmp rebomosplugin.nsis
57+
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
58+
DEPENDS rebomosplugin ${CMAKE_BINARY_DIR}/lammps.ico ${CMAKE_BINARY_DIR}/lammps-text-logo-wide.bmp ${CMAKE_BINARY_DIR}/rebomosplugin.nsis
5859
BYPRODUCTS LAMMPS-USER-REBOMOS-plugin-${LAMMPS_VERSION}.exe)
5960
endif()
6061
endif()

USER-REBOMOS/rebomosplugin.nsis

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ ${If} $0 != "admin"
3131
${EndIf}
3232
!macroend
3333

34-
!define PACEPLUGIN "LAMMPS USER-REBOMOS Plugin ${VERSION}"
34+
!define REBOMOSPLUGIN "LAMMPS USER-REBOMOS Plugin ${VERSION}"
3535
OutFile "LAMMPS-USER-REBOMOS-plugin-${VERSION}.exe"
3636

37-
Name "${PACEPLUGIN}"
38-
InstallDir "$LOCALAPPDATA\${PACEPLUGIN}"
37+
Name "${REBOMOSPLUGIN}"
38+
InstallDir "$LOCALAPPDATA\${REBOMOSPLUGIN}"
3939

4040
ShowInstDetails show
4141
ShowUninstDetails show
@@ -80,7 +80,7 @@ function .onInit
8080
setShellVarContext all
8181
functionEnd
8282

83-
Section "${PACEPLUGIN}" SecPaceplugin
83+
Section "${REBOMOSPLUGIN}" SecPaceplugin
8484
SectionIn RO
8585
# Write LAMMPS installation bitness marker. Always use 32-bit registry view
8686
SetRegView 32
@@ -97,9 +97,9 @@ Section "${PACEPLUGIN}" SecPaceplugin
9797

9898
# Register Application and its uninstaller
9999
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\LAMMPS-USER-REBOMOS" \
100-
"DisplayName" "${PACEPLUGIN}"
100+
"DisplayName" "${REBOMOSPLUGIN}"
101101
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\LAMMPS-USER-REBOMOS" \
102-
"Publisher" "The LAMMPS and PACE Developers"
102+
"Publisher" "The LAMMPS and USER-REBOMOS Developers"
103103
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\LAMMPS-USER-REBOMOS" \
104104
"URLInfoAbout" "lammps.org"
105105
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\LAMMPS-USER-REBOMOS" \

USER-VCSGC/CMakeLists.txt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,14 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "Windows")
5151
endif()
5252
if(BUILD_MPI)
5353
add_custom_target(${mytarget} ${MAKENSIS_PATH} -V1 -DVERSION=${LAMMPS_VERSION}-MPI vcsgcplugin.nsis
54-
DEPENDS vcsgcplugin
55-
BYPRODUCTS LAMMPS-USER-VCSGC-plugin-${LAMMPS_VERSION}-MPI.exe)
54+
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
55+
DEPENDS vcsgcplugin ${CMAKE_BINARY_DIR}/lammps.ico ${CMAKE_BINARY_DIR}/lammps-text-logo-wide.bmp ${CMAKE_BINARY_DIR}/aeamplugin.nsis
56+
BYPRODUCTS ${CMAKE_BINARY_DIR}/LAMMPS-USER-VCSGC-plugin-${LAMMPS_VERSION}-MPI.exe)
5657
else()
5758
add_custom_target(${mytarget} ${MAKENSIS_PATH} -V1 -DVERSION=${LAMMPS_VERSION} vcsgcplugin.nsis
58-
COMMAND ${CMAKE_COMMAND} -E echo ${PWD}
59-
DEPENDS vcsgcplugin lammps.ico lammps-text-logo-wide.bmp vcsgcplugin.nsis
60-
BYPRODUCTS LAMMPS-USER-VCSGC-plugin-${LAMMPS_VERSION}.exe)
59+
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
60+
DEPENDS vcsgcplugin ${CMAKE_BINARY_DIR}/lammps.ico ${CMAKE_BINARY_DIR}/lammps-text-logo-wide.bmp ${CMAKE_BINARY_DIR}/vcsgcplugin.nsis
61+
BYPRODUCTS ${CMAKE_BINARY_DIR}/LAMMPS-USER-VCSGC-plugin-${LAMMPS_VERSION}.exe)
6162
endif()
6263
endif()
6364
else()

0 commit comments

Comments
 (0)