summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jpeg/CMakeLists.txt4
-rw-r--r--png/CMakeLists.txt4
-rw-r--r--zlib/CMakeLists.txt4
3 files changed, 12 insertions, 0 deletions
diff --git a/jpeg/CMakeLists.txt b/jpeg/CMakeLists.txt
index 20e215b63..a5c27a21e 100644
--- a/jpeg/CMakeLists.txt
+++ b/jpeg/CMakeLists.txt
@@ -29,6 +29,10 @@ list(APPEND BUILD_SRCS "${systemdependent_SRCS};${common_SRCS}")
list(APPEND BUILD_SRCS "${compression_SRCS};${decompression_SRCS}")
#######################################################################
FL_ADD_LIBRARY(fltk_jpeg STATIC "${BUILD_SRCS}")
+# install the jpeg headers
+install(FILES jconfig.h;jerror.h;jmorecfg.h;jpeglib.h
+ DESTINATION ${FLTK_INCLUDEDIR}/FL/images
+)
#######################################################################
if(OPTION_BUILD_SHARED_LIBS)
diff --git a/png/CMakeLists.txt b/png/CMakeLists.txt
index 4ebb90529..32ebc5f60 100644
--- a/png/CMakeLists.txt
+++ b/png/CMakeLists.txt
@@ -9,6 +9,10 @@ set(PNG_SRCS
#######################################################################
FL_ADD_LIBRARY(fltk_png STATIC "${PNG_SRCS}")
+# install the png headers
+install(FILES png.h;pngconf.h;pnglibconf.h
+ DESTINATION ${FLTK_INCLUDEDIR}/FL/images
+)
if(OPTION_USE_SYSTEM_ZLIB)
target_link_libraries(fltk_png ${FLTK_ZLIB_LIBRARIES})
diff --git a/zlib/CMakeLists.txt b/zlib/CMakeLists.txt
index e96080622..b5f47278c 100644
--- a/zlib/CMakeLists.txt
+++ b/zlib/CMakeLists.txt
@@ -9,6 +9,10 @@ set(ZLIB_SRCS
#######################################################################
FL_ADD_LIBRARY(fltk_z STATIC "${ZLIB_SRCS}")
+# install the zlib headers
+install(FILES zconf.h;zlib.h;zutil.h
+ DESTINATION ${FLTK_INCLUDEDIR}/FL/images
+)
#######################################################################
if(OPTION_BUILD_SHARED_LIBS)