list(APPEND CMAKE_LIBRARY_PATH ${WINDOWS_DEPENDENCY_DIR}/lib)
list(APPEND CMAKE_INCLUDE_PATH ${WINDOWS_DEPENDENCY_DIR}/include ${WINDOWS_DEPENDENCY_DIR}/bin)
else()
- list(APPEND CMAKE_INCLUDE_PATH /usr/lib /usr/local/lib)
+ list(APPEND CMAKE_INCLUDE_PATH /usr/lib /usr/local/lib /usr/lib/x86_64-linux-gnu)
endif()
find_package(ANN)
-find_path(PANGOCAIRO_INCLUDE_DIR pango/pangocairo.h)
+find_path(PANGOCAIRO_INCLUDE_DIR pango/pangocairo.h PATH_SUFFIXES pango-1.0)
+find_path(GLIB_INCLUDE_DIR glib.h PATH_SUFFIXES glib-2.0)
+find_path(GLIBCONFIG_INCLUDE_DIR glibconfig.h PATH_SUFFIXES glib-2.0/include)
find_library(GLIB_LIBRARY NAMES glib-2.0)
find_library(GOBJECT_LIBRARY NAMES gobject-2.0)
include(FindPackageHandleStandardArgs)
if (WIN32)
find_package_handle_standard_args(PANGOCAIRO DEFAULT_MSG
+ GLIB_INCLUDE_DIR
+ GLIBCONFIG_INCLUDE_DIR
PANGOCAIRO_INCLUDE_DIR
GLIB_LIBRARY
)
else()
find_package_handle_standard_args(PANGOCAIRO DEFAULT_MSG
+ GLIB_INCLUDE_DIR
+ GLIBCONFIG_INCLUDE_DIR
PANGOCAIRO_INCLUDE_DIR
GLIB_LIBRARY
endif()
mark_as_advanced(
+ GLIB_INCLUDE_DIR
+ GLIBCONFIG_INCLUDE_DIR
PANGOCAIRO_INCLUDE_DIR
GLIB_LIBRARY
PANGOWIN_RUNTIME_LIBRARY
)
-set(PANGOCAIRO_INCLUDE_DIRS ${PANGOCAIRO_INCLUDE_DIR})
+set(PANGOCAIRO_INCLUDE_DIRS
+ ${GLIB_INCLUDE_DIR}
+ ${GLIBCONFIG_INCLUDE_DIR}
+ ${PANGOCAIRO_INCLUDE_DIR}
+)
set(PANGOCAIRO_LIBRARIES
${GLIB_LIBRARY}