aboutsummaryrefslogtreecommitdiffstats
path: root/src/neptune-cluster-app/neptune-cluster-app.pro
blob: 5efe85907de4f7d802df46913928d63f799d8b56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
requires(linux|macos) # @todo add win

TEMPLATE = app
TARGET = neptune-cluster-app
QT *= quick gui core interfaceframework

isEmpty(INSTALL_PREFIX) {
    INSTALL_PREFIX=/opt
}

# check ogl-runtime
qtHaveModule(studio3d) {
    QT *= studio3d
    DEFINES *= STUDIO3D_RUNTIME_INSTALLED
}

CONFIG += c++11
macos: CONFIG -= app_bundle

DESTDIR = $$OUT_PWD/../../

QMAKE_RPATHDIR += $$QMAKE_REL_RPATH_BASE/$$relative_path($$INSTALL_PREFIX/neptune3/lib, $$INSTALL_PREFIX/neptune3/)
LIBS += -L$$LIB_DESTDIR -l$$qtLibraryTarget(remotesettings) -l$$qtLibraryTarget(drivedata)

SOURCES += \
        main.cpp

OTHER_FILES += $$files($$PWD/*.qml, true)

target.path = $$INSTALL_PREFIX/neptune3

installFiles.files = $$files($$PWD/*.qml, false) apps
installFiles.path = $$INSTALL_PREFIX/neptune3/neptune-cluster/
installFiles.CONFIG += no_check_exist

INSTALLS += target installFiles

# copy files in neptune-cluster-app build folder
FILES = main.qml ClusterRootStore.qml MockedWindows.qml Launcher.qml
do_copydata.commands += $(MKDIR) $$shell_path($$DESTDIR/neptune-cluster) $$escape_expand(\n\t)
for (f , FILES) {
    do_copydata.commands += $(COPY) $$shell_path($$PWD/$${f}) $$shell_path($$DESTDIR/neptune-cluster/) $$escape_expand(\n\t)
}

do_copydata.commands += $(COPY_DIR) $$shell_path($$PWD/apps) $$shell_path($$DESTDIR/neptune-cluster/) $$escape_expand(\n\t)

first.depends = do_copydata
QMAKE_EXTRA_TARGETS += first do_copydata