summaryrefslogtreecommitdiff
path: root/CMake/export.cmake
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2021-12-20 19:18:38 +0100
committerAlbrecht Schlosser <albrechts.fltk@online.de>2021-12-20 19:18:38 +0100
commitb91db00d9164e45a51e19ec20ee9bed6b357b8e9 (patch)
tree1b6a3d9258dd53998dce3701c03673453193cfdd /CMake/export.cmake
parente186ee0af3c42c0a5fcffead0428ed784a602363 (diff)
CMake: export Cairo include directories (issue #350)
If a user project is built using a FLTK library generated by CMake with Cairo support then the CMake variable FLTK_INCLUDE_DIRECTORIES now includes the required Cairo include directories.
Diffstat (limited to 'CMake/export.cmake')
-rw-r--r--CMake/export.cmake3
1 files changed, 3 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(