Init commonmark support.

Add dependency cmark.
This commit is contained in:
Black Hat
2019-01-18 08:46:50 +08:00
parent 2b0e45bddf
commit 635dbbff39
7 changed files with 21 additions and 97 deletions

View File

@@ -20,6 +20,9 @@ isEmpty(USE_SYSTEM_SORTFILTERPROXYMODEL) {
isEmpty(USE_SYSTEM_QMATRIXCLIENT) {
USE_SYSTEM_QMATRIXCLIENT = false
}
isEmpty(USE_SYSTEM_CMARK) {
USE_SYSTEM_CMARK = false
}
isEmpty(BUNDLE_FONT) {
BUNDLE_FONT = false
}
@@ -36,6 +39,12 @@ $$USE_SYSTEM_SORTFILTERPROXYMODEL {
message("Falling back to built-in SortFilterProxyModel.")
include(include/SortFilterProxyModel/SortFilterProxyModel.pri)
}
$$USE_SYSTEM_CMARK {
PKGCONFIG += libcmark
} else {
message("Falling back to built-in CMark.")
include(include/SortFilterProxyModel/SortFilterProxyModel.pri)
}
# The following define makes your compiler emit warnings if you use
# any feature of Qt which as been marked deprecated (the exact warnings