Showing
3 changed files
with
10 additions
and
2 deletions
@@ -17,6 +17,13 @@ set(PROJECT_NAME "printing") | @@ -17,6 +17,13 @@ set(PROJECT_NAME "printing") | ||
17 | project(${PROJECT_NAME} LANGUAGES CXX) | 17 | project(${PROJECT_NAME} LANGUAGES CXX) |
18 | 18 | ||
19 | set(ARCH "x64") | 19 | set(ARCH "x64") |
20 | +set(PDFIUM_VERSION "4475") | ||
21 | + | ||
22 | +if(${PDFIUM_VERSION} STREQUAL "latest") | ||
23 | + set(PDFIUM_URL "https://github.com/bblanchon/pdfium-binaries/releases/latest/download/pdfium-windows-${ARCH}.zip") | ||
24 | +else() | ||
25 | + set(PDFIUM_URL "https://github.com/bblanchon/pdfium-binaries/releases/download/chromium%2F${PDFIUM_VERSION}/pdfium-windows-${ARCH}.zip") | ||
26 | +endif() | ||
20 | 27 | ||
21 | # Download pdfium | 28 | # Download pdfium |
22 | include(../windows/DownloadProject.cmake) | 29 | include(../windows/DownloadProject.cmake) |
@@ -24,7 +31,7 @@ download_project( | @@ -24,7 +31,7 @@ download_project( | ||
24 | PROJ | 31 | PROJ |
25 | pdfium | 32 | pdfium |
26 | URL | 33 | URL |
27 | - https://github.com/bblanchon/pdfium-binaries/releases/latest/download/pdfium-windows-${ARCH}.zip | 34 | + ${PDFIUM_URL} |
28 | ) | 35 | ) |
29 | 36 | ||
30 | # This value is used when generating builds using this plugin, so it must not be | 37 | # This value is used when generating builds using this plugin, so it must not be |
1 | # Distributed under the OSI-approved MIT License. See accompanying | 1 | # Distributed under the OSI-approved MIT License. See accompanying |
2 | # file LICENSE or https://github.com/Crascit/DownloadProject for details. | 2 | # file LICENSE or https://github.com/Crascit/DownloadProject for details. |
3 | 3 | ||
4 | -cmake_minimum_required(VERSION 2.8.2) | 4 | +cmake_minimum_required(VERSION 3.15) |
5 | 5 | ||
6 | project(${DL_ARGS_PROJ}-download NONE) | 6 | project(${DL_ARGS_PROJ}-download NONE) |
7 | 7 |
-
Please register or login to post a comment