Merge branch 'master' of ssh://gitlab.com:/eelke/pgLab

# Conflicts:
#	common.pri
This commit is contained in:
eelke 2019-03-27 18:24:27 +01:00
commit 4694b09ba1
9 changed files with 31 additions and 28 deletions

2
.gitignore vendored
View file

@ -2,7 +2,7 @@
build/* build/*
*.kdev4 *.kdev4
.kdev4/* .kdev4/*
local.pri
DIST/ DIST/
*.autosave *.autosave
srcdoc/ srcdoc/

View file

@ -1,7 +1,10 @@
INCLUDEPATH += \prog\include \prog\include\pgsql \VSproj\boost\include\boost-1_68 ! include( ./local.pri ) {
error( "Use local.pri.sample to create your own local.pri" )
}
LIBS += -L\VSproj\boost\lib -L/PROG/LIB -lws2_32 -llibpq LIBS += -lws2_32 -llibpq
CONFIG += c++17
QMAKE_CXXFLAGS += /std:c++17 QMAKE_CXXFLAGS += /std:c++17
# The following define makes your compiler emit warnings if you use # The following define makes your compiler emit warnings if you use

View file

@ -9,7 +9,7 @@ QT += sql
TARGET = core TARGET = core
TEMPLATE = lib TEMPLATE = lib
CONFIG += staticlib c++17 CONFIG += staticlib
! include( ../common.pri ) { ! include( ../common.pri ) {
error( "Couldn't find the common.pri file!" ) error( "Couldn't find the common.pri file!" )

View file

@ -8,15 +8,7 @@ QT += widgets
TARGET = ctk TARGET = ctk
TEMPLATE = lib TEMPLATE = lib
CONFIG += staticlib c++14 CONFIG += staticlib
QMAKE_CXXFLAGS += /std:c++17
INCLUDEPATH += C:\prog\include \
C:\Prog\include\pgsql \
C:\VSproj\boost32\include
DEFINES += WIN32_LEAN_AND_MEAN NOMINMAX
# The following define makes your compiler emit warnings if you use # The following define makes your compiler emit warnings if you use

17
local.pri.sample Normal file
View file

@ -0,0 +1,17 @@
# Need paths here to find following library headers
# - botan
# - boost
# - libpq
# ???
INCLUDEPATH += c:/prog/include
INCLUDEPATH += c:/prog/include/pgsql
INCLUDEPATH += c:/VSproj/boost/include/boost-1_68
# Need paths here to find library files for
# - botan
# - boost
# - libpq
#
LIBS += -L\VSproj\boost\lib -L/PROG/LIB
GOOGLETEST_DIR = c:/prog/googletest

View file

@ -4,7 +4,6 @@
# #
#------------------------------------------------- #-------------------------------------------------
CONFIG += c++17
QT += core gui concurrent QT += core gui concurrent
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets sql greaterThan(QT_MAJOR_VERSION, 4): QT += widgets sql
@ -17,11 +16,7 @@ TEMPLATE = app
error( "Couldn't find the common.pri file!" ) error( "Couldn't find the common.pri file!" )
} }
INCLUDEPATH += C:\Prog\include\pgsql
DEFINES += _WIN32_WINNT=0x0501 DEFINES += _WIN32_WINNT=0x0501
#LIBS += -LC:/prog/boost/lib -Lc:/prog/lib libpq.lib fmt.lib User32.lib ws2_32.lib
#LIBS += -LC:\VSproj\boost32\lib -LC:/PROG/LIB -lws2_32 -llibpq
win32:RC_ICONS += pglab.ico win32:RC_ICONS += pglab.ico

View file

@ -4,7 +4,7 @@
# #
#------------------------------------------------- #-------------------------------------------------
CONFIG += staticlib c++17 CONFIG += staticlib
QT += core QT += core
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets sql greaterThan(QT_MAJOR_VERSION, 4): QT += widgets sql

View file

@ -4,7 +4,7 @@ error( "Couldn't find the common.pri file!" )
include(gtest_dependency.pri) include(gtest_dependency.pri)
TEMPLATE = app TEMPLATE = app
CONFIG += console c++17 CONFIG += console
CONFIG -= app_bundle CONFIG -= app_bundle
CONFIG += thread CONFIG += thread
CONFIG += qt CONFIG += qt

View file

@ -1,20 +1,16 @@
! include( ../../common.pri ) {
error( "Couldn't find the common.pri file!" )
}
include(gtest_dependency.pri) include(gtest_dependency.pri)
TEMPLATE = app TEMPLATE = app
CONFIG += console c++17 CONFIG += console
CONFIG -= app_bundle CONFIG -= app_bundle
CONFIG += thread CONFIG += thread
CONFIG += qt CONFIG += qt
QT += core widgets QT += core widgets
QMAKE_CXXFLAGS += /std:c++17
! include( ../../common.pri ) {
error( "Couldn't find the common.pri file!" )
}
HEADERS += HEADERS +=
SOURCES += main.cpp \ SOURCES += main.cpp \