diff --git a/src/musredit_qt5/musrStep/musrStep.pro b/src/musredit_qt5/musrStep/musrStep.pro index 565b46c2..daedf7c5 100644 --- a/src/musredit_qt5/musrStep/musrStep.pro +++ b/src/musredit_qt5/musrStep/musrStep.pro @@ -44,7 +44,11 @@ macx { } # install path for the application -unix:target.path = $$(ROOTSYS)/bin +unix { + message( "Determined installation path: $${MUSRSTEP_INSTALL_PATH}" ) +} + +unix:target.path = $${MUSRSTEP_INSTALL_PATH} macx:target.path = /Applications win32:target.path = c:/musrfit/bin diff --git a/src/musredit_qt5/musrWiz/musrWiz.pro b/src/musredit_qt5/musrWiz/musrWiz.pro index 78db62d4..502533e7 100644 --- a/src/musredit_qt5/musrWiz/musrWiz.pro +++ b/src/musredit_qt5/musrWiz/musrWiz.pro @@ -1,8 +1,31 @@ TEMPLATE = app TARGET = musrWiz -# install path for the application -unix:target.path = $$(ROOTSYS)/bin +# install path for musrWiz +count( PREFIX, 1 ) { + MUSRWIZ_INSTALL_PATH = $${PREFIX}/bin +} +isEmpty( MUSREDIT_INSTALL_PATH ) { + MUSR_FIT_PATH = $$(MUSRFITPATH) + count( MUSR_FIT_PATH, 1 ) { + MUSRWIZ_INSTALL_PATH = $$(MUSRFITPATH) + } +} +isEmpty( MUSREDIT_INSTALL_PATH ) { + ROOT_SYS_PATH = $$(ROOTSYS) + count( ROOT_SYS_PATH, 1 ) { + MUSRWIZ_INSTALL_PATH = $$(ROOTSYS)/bin + } +} +isEmpty( MUSREDIT_INSTALL_PATH ) { + MUSRWIZ_INSTALL_PATH = /usr/local/bin +} + +unix { + message( "Determined installation path: $${MUSRWIZ_INSTALL_PATH}" ) +} + +unix:target.path = $${MUSRWIZ_INSTALL_PATH} macx:target.path = /Applications win32:target.path = c:/musrfit/bin