mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-07-05 17:48:38 +00:00
use pkgconfig to search for fontforge>=2.0.0
This commit is contained in:
parent
a28d9f8a20
commit
42264bf20c
|
@ -8,6 +8,12 @@ pkg_check_modules(POPPLER REQUIRED poppler>=0.20.0)
|
|||
include_directories(${POPPLER_INCLUDE_DIRS})
|
||||
link_directories(${POPPLER_LIBRARY_DIRS})
|
||||
|
||||
# fontforge starts using pkg-config 'correctly' since 2.0.0
|
||||
pkg_check_modules(FONTFORGE libfontforge>=2.0.0)
|
||||
if(FONTFORGE_FOUND)
|
||||
include_directories(${FONTFORGE_INCLUDE_DIRS})
|
||||
link_directories(${FONTFORGE_LIBRARY_DIRS})
|
||||
else()
|
||||
find_path(FF_INCLUDE_PATH fontforge/fontforge.h)
|
||||
if(FF_INCLUDE_PATH)
|
||||
message("Found fontforge.h: ${FF_INCLUDE_PATH}/fontforge/fontforge.h")
|
||||
|
@ -51,6 +57,9 @@ endif()
|
|||
|
||||
message("Looking for libraries of python, which is required by fontforge, if you can link fontforge without python, you may disable this")
|
||||
pkg_search_module(PYTHON python python-2.7)
|
||||
endif()
|
||||
|
||||
|
||||
|
||||
set(PDF2HTMLEX_VERSION "0.3")
|
||||
set(ARCHIVE_NAME pdf2htmlex-${PDF2HTMLEX_VERSION})
|
||||
|
|
Loading…
Reference in New Issue
Block a user