File tree Expand file tree Collapse file tree 5 files changed +29
-26
lines changed
Expand file tree Collapse file tree 5 files changed +29
-26
lines changed Original file line number Diff line number Diff 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 ()
6162else ()
Original file line number Diff line number Diff 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}"
3535OutFile "LAMMPS-USER-AEAM-plugin-${VERSION}.exe"
3636
37- Name "${PACEPLUGIN }"
38- InstallDir "$LOCALAPPDATA\${PACEPLUGIN }"
37+ Name "${AEAMPLUGIN }"
38+ InstallDir "$LOCALAPPDATA\${AEAMPLUGIN }"
3939
4040ShowInstDetails show
4141ShowUninstDetails show
@@ -80,7 +80,7 @@ function .onInit
8080 setShellVarContext all
8181functionEnd
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" \
Original file line number Diff line number Diff 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 ()
Original file line number Diff line number Diff 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}"
3535OutFile "LAMMPS-USER-REBOMOS-plugin-${VERSION}.exe"
3636
37- Name "${PACEPLUGIN }"
38- InstallDir "$LOCALAPPDATA\${PACEPLUGIN }"
37+ Name "${REBOMOSPLUGIN }"
38+ InstallDir "$LOCALAPPDATA\${REBOMOSPLUGIN }"
3939
4040ShowInstDetails show
4141ShowUninstDetails show
@@ -80,7 +80,7 @@ function .onInit
8080 setShellVarContext all
8181functionEnd
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" \
Original file line number Diff line number Diff 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 ()
6364else ()
You can’t perform that action at this time.
0 commit comments