build: add support for custom lrc installation path

- qmake: add custom lrc path support
- cmake: add custom lrc path support, check qt version, update dependencies, optional test compilation
- readme: update flags building with make-ring.py
- tests: avoid using pandoc

Change-Id: I97dea21ca7c720c2d619c44bfa7dae5290de72f9
This commit is contained in:
ababi
2020-12-15 20:30:07 +01:00
committed by Sébastien Blin
parent 92e6f92c8e
commit 2d461cc557
4 changed files with 79 additions and 26 deletions

View File

@@ -95,13 +95,23 @@ unix {
QMAKE_CXXFLAGS += -std=c++17
}
isEmpty(LRC) { LRC=$$PWD/../install/lrc/ }
INCLUDEPATH += $${LRC}/include/libringclient
INCLUDEPATH += $${LRC}/include
INCLUDEPATH += ../src
LIBS += -L$${LRC}/lib -lringclient
isEmpty(LRC) {
LRC=$$PWD/../install/lrc
INCLUDEPATH += $${LRC}/include/libringclient
LIBDIR = $${LRC}/lib
} else {
INCLUDEPATH += $${LRC}/src
isEmpty(LRCBUILD) {
LIBDIR = $${LRC}/build
} else {
LIBDIR = $${LRCBUILD}
}
}
QMAKE_RPATHDIR += $${LIBDIR}
LIBS += -L$${LIBDIR} -lringclient
LIBS += -lqrencode
LIBS += -lX11