Skip to content

Commit

Permalink
Deploy JPEG and PNG on Linux (#1627).
Browse files Browse the repository at this point in the history
  • Loading branch information
agarny committed May 9, 2018
1 parent 22be2c1 commit bfb0112
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions CMakeLists.txt
Expand Up @@ -1350,6 +1350,22 @@ else()
linux_deploy_qt_plugin(xcbglintegrations qxcb-egl-integration qxcb-glx-integration)
endif()

# JPEG and PNG are needed by QtWebKit and may not be present on a user's
# system

find_package(JPEG REQUIRED QUIET)
find_package(PNG REQUIRED QUIET)

get_filename_component(REAL_JPEG_LIBRARY ${JPEG_LIBRARY} REALPATH)
get_filename_component(REAL_PNG_LIBRARY ${PNG_LIBRARY} REALPATH)

install(FILES ${REAL_JPEG_LIBRARY}
DESTINATION lib
RENAME libjpeg.so.8)
install(FILES ${REAL_PNG_LIBRARY}
DESTINATION lib
RENAME libpng12.so.0)

# Shell script to run OpenCOR

set(SH_FILENAME ${PROJECT_BUILD_DIR}/${CMAKE_PROJECT_NAME}.sh)
Expand Down

0 comments on commit bfb0112

Please sign in to comment.