From ac7118680d2258ee884378b8815b50131ed5c4f0 Mon Sep 17 00:00:00 2001 From: willson-chen Date: Fri, 1 Nov 2019 21:26:53 +0800 Subject: Fix #539: Add RAQM support for cmake * Add `ENABLE_RAQM` option to CMakeLists.txt * Add cmake module FindRAQM.cmake --- CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index f89188a..4f11858 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,6 +19,7 @@ OPTION(ENABLE_XPM "Enable XPM support" 0) OPTION(ENABLE_FREETYPE "Enable Freetype2 support" 0) OPTION(ENABLE_FONTCONFIG "Enable FontConfig support" 0) OPTION(ENABLE_WEBP "Enable WebP support" 0) +OPTION(ENABLE_RAQM "Enable RAQM support" 0) if (BUILD_TEST) ENABLE_TESTING() @@ -143,6 +144,10 @@ else (USE_EXT_GD) FIND_PACKAGE(FontConfig) endif (ENABLE_FONTCONFIG) + if (ENABLE_RAQM) + FIND_PACKAGE(RAQM) + endif (ENABLE_RAQM) + SET(ENABLE_GD_FORMATS ${ENABLE_GD_FORMATS}) if (FREETYPE_FOUND) @@ -201,6 +206,10 @@ else (USE_EXT_GD) SET(FONTCONFIG_LIB_DIR "") ENDIF(FONTCONFIG_FOUND) + IF(RAQM_FOUND) + INCLUDE_DIRECTORIES(${RAQM_INCLUDE_DIR}) + ENDIF(RAQM_FOUND) + SET(HAVE_CONFIG_H 1) ADD_DEFINITIONS(-DHAVE_CONFIG_H) -- cgit v1.2.1