diff options
Diffstat (limited to 'vcpkg/scripts/test_ports/vcpkg-ci-qtwebengine/project')
| -rw-r--r-- | vcpkg/scripts/test_ports/vcpkg-ci-qtwebengine/project/CMakeLists.txt | 17 | ||||
| -rw-r--r-- | vcpkg/scripts/test_ports/vcpkg-ci-qtwebengine/project/main.cpp | 18 |
2 files changed, 35 insertions, 0 deletions
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-qtwebengine/project/CMakeLists.txt b/vcpkg/scripts/test_ports/vcpkg-ci-qtwebengine/project/CMakeLists.txt new file mode 100644 index 0000000..be214f8 --- /dev/null +++ b/vcpkg/scripts/test_ports/vcpkg-ci-qtwebengine/project/CMakeLists.txt @@ -0,0 +1,17 @@ +cmake_minimum_required(VERSION 3.24)
+
+project(vcpkg-ci-qtwebengine LANGUAGES C CXX)
+
+add_executable(main main.cpp)
+
+if("pdf" IN_LIST FEATURES)
+ find_package(Qt6 REQUIRED COMPONENTS Pdf)
+ target_link_libraries(main PRIVATE Qt6::Pdf)
+ target_compile_definitions(main PRIVATE REQUIRE_PDF)
+endif()
+
+if("webengine" IN_LIST FEATURES)
+ find_package(Qt6 REQUIRED COMPONENTS WebEngineCore)
+ target_link_libraries(main PRIVATE Qt6::WebEngineCore)
+ target_compile_definitions(main PRIVATE REQUIRE_WEBENGINE)
+endif()
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-qtwebengine/project/main.cpp b/vcpkg/scripts/test_ports/vcpkg-ci-qtwebengine/project/main.cpp new file mode 100644 index 0000000..ecb352b --- /dev/null +++ b/vcpkg/scripts/test_ports/vcpkg-ci-qtwebengine/project/main.cpp @@ -0,0 +1,18 @@ +#ifdef REQUIRE_PDF
+#include <QPdfDocument>
+#endif
+#ifdef REQUIRE_WEBENGINE
+#include <QWebEnginePage>
+#endif
+
+int main()
+{
+#ifdef REQUIRE_PDF
+ QPdfDocument doc(nullptr);
+#endif
+#ifdef REQUIRE_WEBENGINE
+ QObject* parent = nullptr;
+ QWebEnginePage page(parent);
+#endif
+ return 0;
+}
|