Better support for compiling with system libraries (#1447)

This commit is contained in:
pajlada
2019-12-29 12:47:15 +01:00
committed by GitHub
parent 443aba3f9c
commit 2cb2f679c2
5 changed files with 70 additions and 4 deletions
+14 -1
View File
@@ -1,2 +1,15 @@
# rapidjson
INCLUDEPATH += $$PWD/rapidjson/include/
# Chatterino2 is tested with RapidJSON v1.1.0
# - RAPIDJSON_PREFIX ($$PWD by default)
# - RAPIDJSON_SYSTEM (1 = true) (Linux only, uses pkg-config)
!defined(RAPIDJSON_PREFIX) {
RAPIDJSON_PREFIX = $$PWD
}
linux:equals(RAPIDJSON_SYSTEM, "1") {
message("Building with system RapidJSON")
PKGCONFIG += RapidJSON
} else {
INCLUDEPATH += $$RAPIDJSON_PREFIX/rapidjson/include/
}