Skip to content
Snippets Groups Projects
Commit 6fe226cb authored by ManoloFLTK's avatar ManoloFLTK
Browse files

CMake: use pkg_check_modules to search for pangoxft

Command pkg_check_modules is present in CMake 2.6
parent 7ca708a4
No related branches found
No related tags found
Loading
...@@ -462,6 +462,15 @@ endif (OPTION_USE_PANGO) ...@@ -462,6 +462,15 @@ endif (OPTION_USE_PANGO)
####################################################################### #######################################################################
if(X11_Xft_FOUND AND OPTION_USE_PANGO) if(X11_Xft_FOUND AND OPTION_USE_PANGO)
pkg_check_modules(PANGOXFT pangoxft)
# message(STATUS "PANGOXFT_FOUND=" ${PANGOXFT_FOUND})
if(PANGOXFT_FOUND)
include_directories(${PANGOXFT_INCLUDE_DIRS})
find_library(HAVE_LIB_PANGO pango-1.0 ${CMAKE_LIBRARY_PATH})
find_library(HAVE_LIB_PANGOXFT pangoxft-1.0 ${CMAKE_LIBRARY_PATH})
set(USE_PANGO TRUE)
else(PANGOXFT_FOUND)
#this covers Debian, Ubuntu, FreeBSD, NetBSD, Darwin #this covers Debian, Ubuntu, FreeBSD, NetBSD, Darwin
if(APPLE AND OPTION_APPLE_X11) if(APPLE AND OPTION_APPLE_X11)
find_file(FINK_PREFIX NAMES /opt/sw /sw) find_file(FINK_PREFIX NAMES /opt/sw /sw)
...@@ -500,6 +509,7 @@ if(X11_Xft_FOUND AND OPTION_USE_PANGO) ...@@ -500,6 +509,7 @@ if(X11_Xft_FOUND AND OPTION_USE_PANGO)
set(LDFLAGS "${LDFLAGS} -L${FINK_PREFIX}/lib") set(LDFLAGS "${LDFLAGS} -L${FINK_PREFIX}/lib")
endif (APPLE) endif (APPLE)
endif(HAVE_LIB_PANGO AND HAVE_LIB_PANGOXFT AND HAVE_LIB_GOBJECT) endif(HAVE_LIB_PANGO AND HAVE_LIB_PANGOXFT AND HAVE_LIB_GOBJECT)
endif(PANGOXFT_FOUND)
endif(X11_Xft_FOUND AND OPTION_USE_PANGO) endif(X11_Xft_FOUND AND OPTION_USE_PANGO)
if(OPTION_USE_XFT) if(OPTION_USE_XFT)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment