Skip to content
Snippets Groups Projects
Commit 5a0551df authored by Albrecht Schlosser's avatar Albrecht Schlosser
Browse files

CMake: fix include directories of bundled image libs

If FLTK has been built with bundled image libs the include directory
of the *installed* library headers is 'FL/images' relative to the
normal 'include' directory.

The CMake property "include_directories" is now added to the installed
fltk_images library so it is used when building user programs with
bundled image libs.
parent 6b87b01b
No related branches found
No related tags found
No related merge requests found
......@@ -847,7 +847,19 @@ target_link_libraries(fltk_images PRIVATE ${FLTK_IMAGE_LIBRARIES})
if(FLTK_USE_BUNDLED_JPEG)
target_include_directories(fltk_images PUBLIC
$<BUILD_INTERFACE:${FLTK_SOURCE_DIR}/jpeg>
$<INSTALL_INTERFACE:include>)
$<INSTALL_INTERFACE:include/FL/images>)
endif()
if(FLTK_USE_BUNDLED_PNG)
target_include_directories(fltk_images PUBLIC
$<BUILD_INTERFACE:${FLTK_SOURCE_DIR}/png>
$<INSTALL_INTERFACE:include/FL/images>)
endif()
if(FLTK_USE_BUNDLED_ZLIB)
target_include_directories(fltk_images PUBLIC
$<BUILD_INTERFACE:${FLTK_SOURCE_DIR}/zlib>
$<INSTALL_INTERFACE:include/FL/images>)
endif()
#######################################################################
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment