mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 13:00:08 +00:00
detect libfontforge on Mac OS [Thanks to Deepak]
This commit is contained in:
parent
a0de63d85a
commit
52c884e097
@ -21,12 +21,20 @@ else()
|
|||||||
message(FATAL_ERROR "Error: cannot locate fontforge.h")
|
message(FATAL_ERROR "Error: cannot locate fontforge.h")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_library(FF_LIB libfontforge.so)
|
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
||||||
|
set(FF_LIB_EXT ".so")
|
||||||
|
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||||
|
set(FF_LIB_EXT ".dylib")
|
||||||
|
else()
|
||||||
|
message("Set FF_LIB_EXT for your platform!")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
find_library(FF_LIB libfontforge${FF_LIB_EXT})
|
||||||
if(FF_LIB)
|
if(FF_LIB)
|
||||||
message("Found libfontforge.so: ${FF_LIB}")
|
message("Found libfontforge${FF_LIB_EXT}: ${FF_LIB}")
|
||||||
set(FONTFORGE_LIBRARIES ${FF_LIB})
|
set(FONTFORGE_LIBRARIES ${FF_LIB})
|
||||||
else()
|
else()
|
||||||
message(FATAL_ERROR "Error: cannot locate libfontforge.so")
|
message(FATAL_ERROR "Error: cannot locate libfontforge${FF_LIB_EXT}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
message("Looking for libraries of python, which is required by fontforge, if you can link fontforge without python, you may disable this")
|
message("Looking for libraries of python, which is required by fontforge, if you can link fontforge without python, you may disable this")
|
||||||
|
Loading…
Reference in New Issue
Block a user