some improvement towards a full functional implementation of musrWiz and musrStep under macos.

This commit is contained in:
2017-03-31 18:18:14 +02:00
parent 377c2acc02
commit bfe501f6f2
4 changed files with 67 additions and 4 deletions

View File

@@ -1,14 +1,60 @@
TEMPLATE = app
TARGET = musrStep
# install path for musrStep via given prefix
count( PREFIX, 1 ) {
MUSRSTEP_INSTALL_PATH = $${PREFIX}/bin
}
isEmpty( MUSRSTEP_INSTALL_PATH ) {
MUSR_FIT_PATH = $$(MUSRFITPATH)
count( MUSR_FIT_PATH, 1) {
MUSRSTEP_INSTALL_PATH = $$(MUSRFITPATH)
}
}
isEmpty( MUSRSTEP_INSTALL_PATH ) {
ROOT_SYS_PATH = $$(ROOTSYS)
count( ROOT_SYS_PATH, 1) {
MUSRSTEP_INSTALL_PATH = $$(ROOTSYS)/bin
}
}
isEmpty( MUSRSTEP_INSTALL_PATH ) {
MUSRSTEP_INSTALL_PATH = /usr/local/bin
}
exists( /usr/bin/cygwin1.dll ) {
QMAKE_CXXFLAGS += -D_WIN32GCC
QMAKE_LFLAGS_APP = -Wl,--enable-auto-import
}
isEmpty( CC ) {
CC = gcc
}
isEmpty( CXX ) {
CXX = g++
}
QMAKE_CC = $${CC}
QMAKE_CXX = $${CXX}
QMAKE_LINK = $${CXX}
# set proper permission for Mac OSX
macx {
QMAKE_INSTALL_FILE = install -m 6755 -p -o $$(USER) -g staff
QMAKE_INSTALL_PROGRAM = install -m 6755 -p -o root -g admin
}
# install path for the application
unix:target.path = $$(ROOTSYS)/bin
macx:target.path = /Applications
win32:target.path = c:/musrfit/bin
INSTALLS += target
CONFIG += qt \
warn_on \
debug \
CONFIG += console
release \
console
QT += widgets
QT += svg
@@ -23,3 +69,4 @@ SOURCES = PMusrStep.cpp \
RESOURCES = musrStep.qrc
macx:ICON = icons/musrStep.icns