Skip to content
Snippets Groups Projects
Commit 360498b8 authored by Stéphane Albert's avatar Stéphane Albert
Browse files

COMP: Added mapla to windows platform installer scripts.

parent bf0e3a24
No related branches found
No related tags found
No related merge requests found
......@@ -7,3 +7,4 @@ endforeach(APP)
include(BundleUtilities)
fixup_bundle("${CMAKE_INSTALL_PREFIX}/bin/monteverdi2.exe" "${OTB_APPS_LIST_INSTALL}" "")
fixup_bundle("${CMAKE_INSTALL_PREFIX}/bin/mv2.exe" "${OTB_APPS_LIST_INSTALL}" "")
fixup_bundle("${CMAKE_INSTALL_PREFIX}/bin/mapla.exe" "${OTB_APPS_LIST_INSTALL}" "")
......@@ -22,6 +22,19 @@ set(CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS
"
PARENT_SCOPE)
# StartMenu entries for Mapla.
set(CPACK_NSIS_EXTRA_INSTALL_COMMANDS
"
CreateShortCut \\\"$SMPROGRAMS\\\\Monteverdi2-${Monteverdi2_VERSION_MAJOR}.${Monteverdi2_VERSION_MINOR}\\\\Mapla.lnk\\\" \\\"$INSTDIR\\\\bin\\\\mapla.bat\\\" \\\" \\\" \\\"$INSTDIR\\\\bin\\\\mapla.exe\\\"
"
PARENT_SCOPE)
set(CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS
"
Delete \\\"$SMPROGRAMS\\\\Monteverdi2-${Monteverdi2_VERSION_MAJOR}.${Monteverdi2_VERSION_MINOR}\\\\Mapla.lnk\\\"
"
PARENT_SCOPE)
# StartMenu entries for Mv2.
set(CPACK_NSIS_EXTRA_INSTALL_COMMANDS
"
......@@ -144,6 +157,10 @@ install(FILES ${Monteverdi2_SOURCE_DIR}/Packaging/Windows/monteverdi2.bat
DESTINATION bin
COMPONENT Runtime)
install(FILES ${Monteverdi2_SOURCE_DIR}/Packaging/Windows/mapla.bat
DESTINATION bin
COMPONENT Runtime)
install(FILES ${Monteverdi2_SOURCE_DIR}/Packaging/Windows/mv2.bat
DESTINATION bin
COMPONENT Runtime)
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Monteverdi launcher to set up proper GDAL environment
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Get the directory of the current script
@set CURRENT_SCRIPT_DIR=%~dp0
:: Set GDAL_DATA env. variable
@set GDAL_DATA=%CURRENT_SCRIPT_DIR%..\share\gdal
@set ITK_AUTOLOAD_PATH=%CURRENT_SCRIPT_DIR%..\lib\otb\applications
:: Set current dir to HOME dir because Monteverdi generates temporary files and need write access
@cd %HOMEDRIVE%%HOMEPATH%
:: Start Monteverdi
@start "Monteverdi2 Application Launcher" /B "%CURRENT_SCRIPT_DIR%mapla.exe" %*
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment