summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-08-24 11:18:29 (GMT)
committerMontel Laurent <montel@kde.org>2016-08-24 11:18:29 (GMT)
commit757437d211cf176a20ee25e73cad59e6bf47f9ab (patch)
treef175fe9ca00e2bad8804adf765ce97c04dc7aa85
parentd8c8042b88c57527aaf66a85bc5f25f4c377cacd (diff)
Finally we need this variable
-rw-r--r--webengineviewer/config-webengineviewer.h.cmake2
-rw-r--r--webengineviewer/src/CMakeLists.txt5
2 files changed, 7 insertions, 0 deletions
diff --git a/webengineviewer/config-webengineviewer.h.cmake b/webengineviewer/config-webengineviewer.h.cmake
index dc1320a..7bde893 100644
--- a/webengineviewer/config-webengineviewer.h.cmake
+++ b/webengineviewer/config-webengineviewer.h.cmake
@@ -1,4 +1,6 @@
#ifndef CONFIGWEBENGINEVIEWER_H
#define CONFIGWEBENGINEVIEWER_H
+#cmakedefine WEBENGINEVIEWER_PRINTPREVIEW_SUPPORT 1
+
#endif
diff --git a/webengineviewer/src/CMakeLists.txt b/webengineviewer/src/CMakeLists.txt
index 60ac0f4..357405d 100644
--- a/webengineviewer/src/CMakeLists.txt
+++ b/webengineviewer/src/CMakeLists.txt
@@ -8,6 +8,11 @@ if(BUILD_TESTING)
add_subdirectory(findbar/autotests)
endif()
+if (Qt5WebEngineWidgets_VERSION VERSION_GREATER "5.7.99")
+ set(WEBENGINEVIEWER_PRINTPREVIEW_SUPPORT true)
+endif()
+
+
configure_file(../config-webengineviewer.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/../config-webengineviewer.h )
set(libwebengineviewer_webengine_SRCS