[CMake] Install bundled (jpeg, png, zlib) library headers if built (STR #3187).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10581 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
6390a0e09e
commit
4d823c0d4a
@ -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)
|
||||
|
@ -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})
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user