win32 {
} else: osx {
} else: ios {
} else: android {
} else: linux {
} else {
    error(No distribution for this platform defined)
}

win32 {
} else: osx {
} else: ios {
} else: android {
} else: linux {
    # Set the rpath, otherwise we can't load the client applications without changing LD_LIBRARY_PATH
    QMAKE_LFLAGS += -Wl,-z,origin \'-Wl,-rpath,\$\$ORIGIN\'

    target.path = /opt/glimpse
    INSTALLS += target
} else {
    error(No distribution for this platform defined)
}

Install to /opt/glimpse on linux. Also link with rpath to avoid the need of a startup script that changes LD_LIBRARY_PATH or does a LD_PRELOAD.
Install to /opt/glimpse on linux. Also link with rpath to avoid the need of a startup script that changes LD_LIBRARY_PATH or does a LD_PRELOAD.
