Skip to content

Instantly share code, notes, and snippets.

@enxt
Last active September 14, 2017 13:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save enxt/c989f6958c0d36e0d8f9bef53223ae56 to your computer and use it in GitHub Desktop.
Save enxt/c989f6958c0d36e0d8f9bef53223ae56 to your computer and use it in GitHub Desktop.
#-------------------------------------------------
#
# Project created by QtCreator 2017-09-13T08:41:36
#
#-------------------------------------------------
QT += core gui testlib network svg xml
CONFIG += c++11
CONFIG += console
#CONFIG += openssl-linked
#LIBS += -L/lib/x86_64-linux-gnu/libssl.so.0.9.8 -L/lib/x86_64-linux-gnu/libcrypto.so.0.9.8 -lssl -lcrypto
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = qtrinside
TEMPLATE = app
# The following define makes your compiler emit warnings if you use
# any feature of Qt which has been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
## comment this out if you need a different version of R,
## and set set R_HOME accordingly as an environment variable
R_HOME = $$system(R RHOME)
## include headers and libraries for R
RCPPFLAGS = $$system($$R_HOME/bin/R CMD config --cppflags)
RLDFLAGS = $$system($$R_HOME/bin/R CMD config --ldflags)
RBLAS = $$system($$R_HOME/bin/R CMD config BLAS_LIBS)
RLAPACK = $$system($$R_HOME/bin/R CMD config LAPACK_LIBS)
## if you need to set an rpath to R itself, also uncomment
#RRPATH = -Wl,-rpath,$$R_HOME/lib
## include headers and libraries for Rcpp interface classes
RCPPINCL = $$system($$R_HOME/bin/Rscript -e \'Rcpp:::CxxFlags\(\)\')
## for some reason when building with Qt we get this each time
## so we turn unused parameter warnings off
RCPPWARNING = -Wno-unused-parameter
## include headers and libraries for RInside embedding classes
RINSIDEINCL = $$system($$R_HOME/bin/Rscript -e \'RInside:::CxxFlags\(\)\')
RINSIDELIBS = $$system($$R_HOME/bin/Rscript -e \'RInside:::LdFlags\(\)\')
## compiler etc settings used in default make rules
QMAKE_CXXFLAGS += $$RCPPWARNING $$RCPPFLAGS $$RCPPINCL $$RINSIDEINCL
LFLAGS += $$RLDFLAGS $$RBLAS $$RLAPACK $$RINSIDELIBS
LIBS += $$LFLAGS
SOURCES += \
main.cpp \
mainwindow.cpp
HEADERS += \
mainwindow.h
FORMS += \
mainwindow.ui
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment