summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMake/export.cmake3
-rw-r--r--CMake/install.cmake3
2 files changed, 6 insertions, 0 deletions
diff --git a/CMake/export.cmake b/CMake/export.cmake
index 81f6e08d1..b67b3d739 100644
--- a/CMake/export.cmake
+++ b/CMake/export.cmake
@@ -48,6 +48,9 @@ configure_file (
# generate FLTKConfig.cmake for build directory use
set (INCLUDE_DIRS "${FLTK_INCLUDE_DIRS}")
+if (FLTK_HAVE_CAIRO)
+ list (APPEND INCLUDE_DIRS ${PKG_CAIRO_INCLUDE_DIRS})
+endif ()
set (CONFIG_PATH ${CMAKE_CURRENT_BINARY_DIR})
configure_file(
diff --git a/CMake/install.cmake b/CMake/install.cmake
index b6b18c374..0d1c35f16 100644
--- a/CMake/install.cmake
+++ b/CMake/install.cmake
@@ -50,6 +50,9 @@ endif (OPTION_CREATE_LINKS)
# generate FLTKConfig.cmake for installed directory use
set (INCLUDE_DIRS ${CMAKE_INSTALL_PREFIX}/include)
+if (FLTK_HAVE_CAIRO)
+ list (APPEND INCLUDE_DIRS ${PKG_CAIRO_INCLUDE_DIRS})
+endif ()
set (CONFIG_PATH ${CMAKE_INSTALL_PREFIX}/${FLTK_CONFIG_PATH})