Skip to content

Commit

Permalink
improved project files
Browse files Browse the repository at this point in the history
  • Loading branch information
vt4a2h committed Jun 17, 2015
1 parent 7ef1db3 commit 0e64743
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 16 deletions.
17 changes: 9 additions & 8 deletions tests/test/test.pro
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
TEMPLATE = app

CONFIG += console qt c++14
CONFIG += console qt
CONFIG -= app_bundle

QT += widgets

LIBS += -lgtest -lpthread

QMAKE_CXX = gcc-5
QMAKE_LINK = gcc-5
QMAKE_LFLAGS *= -lstdc++
QMAKE_CXXFLAGS *= -std=c++1y

QMAKE_CXXFLAGS_DEBUG += --coverage
QMAKE_LFLAGS_DEBUG += --coverage

INCLUDEPATH += ../../

HEADERS += ../../enums.h \
Expand Down Expand Up @@ -56,10 +64,3 @@ SOURCES += main.cpp \
../../generator/basiccppprojectgenerator.cpp \
../../project/project.cpp \
../../translator/code.cpp \

debug {
QMAKE_CXX = gcc-5
QMAKE_LINK = gcc-5
QMAKE_CXXFLAGS += -fprofile-arcs -ftest-coverage -std=c++1y
QMAKE_LFLAGS += -fprofile-arcs -ftest-coverage -lstdc++
}
19 changes: 11 additions & 8 deletions uml-tool.pro
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
CONFIG += core gui c++14
TEMPLATE = app

CONFIG += core gui

QT += widgets

QMAKE_CXX = gcc-5
QMAKE_LINK = gcc-5
QMAKE_LFLAGS *= -lstdc++
QMAKE_CXXFLAGS *= -std=c++1y

QMAKE_CXXFLAGS_DEBUG *= --coverage
QMAKE_LFLAGS_DEBUG *= --coverage

SOURCES += \
main.cpp \
constants.cpp \
Expand Down Expand Up @@ -140,10 +150,3 @@ FORMS += \

RESOURCES += \
gui/main.qrc

debug {
QMAKE_CXX = gcc-5
QMAKE_LINK = gcc-5
QMAKE_CXXFLAGS += -fprofile-arcs -ftest-coverage -std=c++1y
QMAKE_LFLAGS += -fprofile-arcs -ftest-coverage -lstdc++
}

0 comments on commit 0e64743

Please sign in to comment.