FLTK logo

[master] b91db00 - CMake: export Cairo include directories (issue #350)

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] b91db00 - CMake: export Cairo include directories (issue #350) "Albrecht Schlosser" Dec 20, 2021  
 
commit b91db00d9164e45a51e19ec20ee9bed6b357b8e9
Author:     Albrecht Schlosser <albrechts.fltk@online.de>
AuthorDate: Mon Dec 20 19:18:38 2021 +0100
Commit:     Albrecht Schlosser <albrechts.fltk@online.de>
CommitDate: Mon Dec 20 19:18:38 2021 +0100

    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.

 CMake/export.cmake  | 3 +++
 CMake/install.cmake | 3 +++
 2 files changed, 6 insertions(+)

diff --git CMake/export.cmake CMake/export.cmake
index 81f6e08..b67b3d7 100644
--- CMake/export.cmake
+++ 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 CMake/install.cmake CMake/install.cmake
index b6b18c3..0d1c35f 100644
--- CMake/install.cmake
+++ 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})
 
Direct Link to Message ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.