| 1 |
#======================================================================== |
| 2 |
# |
| 3 |
# cmake-xpdf.txt |
| 4 |
# |
| 5 |
# CMake script for the Xpdf package. |
| 6 |
# |
| 7 |
# Copyright 2021 Glyph & Cog, LLC |
| 8 |
# |
| 9 |
#======================================================================== |
| 10 |
|
| 11 |
cmake_minimum_required(VERSION 3.10) |
| 12 |
|
| 13 |
project(xpdf) |
| 14 |
|
| 15 |
include(cmake-config.txt) |
| 16 |
|
| 17 |
add_subdirectory(goo) |
| 18 |
add_subdirectory(fofi) |
| 19 |
add_subdirectory(splash) |
| 20 |
add_subdirectory(xpdf) |
| 21 |
add_subdirectory(xpdf-qt) |
| 22 |
|
| 23 |
if (NOT HAVE_FREETYPE_H) |
| 24 |
message(WARNING "Couldn't find FreeType -- will not build pdftoppm, pdftopng, pdftohtml, or xpdf.") |
| 25 |
endif () |
| 26 |
|
| 27 |
if (NOT PNG_FOUND) |
| 28 |
message(WARNING "Couldn't find libpng -- will not build pdftopng or pdftohtml.") |
| 29 |
endif () |
| 30 |
|
| 31 |
if (NOT QT4_FOUND AND NOT Qt5Widgets_FOUND AND NOT Qt6Widgets_FOUND) |
| 32 |
message(WARNING "Couldn't find Qt4/5/6 -- will not build xpdf.") |
| 33 |
endif () |
| 34 |
|
| 35 |
if (NOT MULTITHREADED) |
| 36 |
message(WARNING "Multithreading is disabled -- will not build xpdf.") |
| 37 |
endif () |
| 38 |
|
| 39 |
if (NOT USE_EXCEPTIONS) |
| 40 |
message(WARNING "C++ exceptions are disabled -- will not build xpdf.") |
| 41 |
endif () |