mirror of
https://github.com/fltk/fltk.git
synced 2026-05-27 19:10:24 +08:00
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.
This commit is contained in:
@@ -48,6 +48,9 @@ configure_file (
|
|||||||
|
|
||||||
# generate FLTKConfig.cmake for build directory use
|
# generate FLTKConfig.cmake for build directory use
|
||||||
set (INCLUDE_DIRS "${FLTK_INCLUDE_DIRS}")
|
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})
|
set (CONFIG_PATH ${CMAKE_CURRENT_BINARY_DIR})
|
||||||
|
|
||||||
configure_file(
|
configure_file(
|
||||||
|
|||||||
@@ -50,6 +50,9 @@ endif (OPTION_CREATE_LINKS)
|
|||||||
|
|
||||||
# generate FLTKConfig.cmake for installed directory use
|
# generate FLTKConfig.cmake for installed directory use
|
||||||
set (INCLUDE_DIRS ${CMAKE_INSTALL_PREFIX}/include)
|
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})
|
set (CONFIG_PATH ${CMAKE_INSTALL_PREFIX}/${FLTK_CONFIG_PATH})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user