Skip to content

Commit

Permalink
Install additional libs on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
topilski committed Mar 17, 2019
1 parent a4d09be commit 1919259
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1003,6 +1003,8 @@ SET(GUI_QRC ${CMAKE_CURRENT_LIST_DIR}/resources/gui.qrc)
SET(BRANDING_QRC ${CMAKE_CURRENT_LIST_DIR}/resources/branding.qrc)
SET(WELCOME_HTML ${CMAKE_CURRENT_LIST_DIR}/resources/${PROJECT_NAME_LOWERCASE}/welcome.html)

FIND_PACKAGE(PNG REQUIRED)
FIND_PACKAGE(Freetype REQUIRED)
FIND_PACKAGE(Common REQUIRED)
FIND_PACKAGE(JSON-C REQUIRED)
FIND_PACKAGE(FastoNoSQL REQUIRED)
Expand Down Expand Up @@ -1179,6 +1181,25 @@ ELSEIF(OS_LINUX OR OS_FREEBSD)
STRING(REGEX REPLACE "[^so]+$" ".2" SASL2_LNNAME ${SASL2_LIB_NAME})
INSTALL(FILES ${SASL2_WITHOUT_SYMLINK} DESTINATION ${LIB_INSTALL_DESTINATION} RENAME ${SASL2_LNNAME} COMPONENT RUNTIME NAMELINK_SKIP) #libsasl2.so.2
ENDIF(USE_SASL2)

#libz.so.1
GET_FILENAME_COMPONENT(LIBZ_LIBRARY_WITHOUT_SYMLINK ${ZLIB_LIBRARY} REALPATH)
GET_FILENAME_COMPONENT(LIBZ_LIBRARY_NAME ${LIBZ_LIBRARY_WITHOUT_SYMLINK} NAME)
STRING(REGEX REPLACE "[^so]+$" ".1" LIBZ_LNNAME ${LIBZ_LIBRARY_NAME})
INSTALL(FILES ${LIBZ_LIBRARY_WITHOUT_SYMLINK} DESTINATION ${LIB_INSTALL_DESTINATION} RENAME ${LIBZ_LNNAME} COMPONENT RUNTIME)

#libpng12.so.0
GET_FILENAME_COMPONENT(LIBPNG_LIBRARY_WITHOUT_SYMLINK ${PNG_LIBRARY} REALPATH)
GET_FILENAME_COMPONENT(LIBPNG_LIBRARY_NAME ${LIBPNG_LIBRARY_WITHOUT_SYMLINK} NAME)
STRING(REGEX REPLACE "[^so]+$" ".0" LIBPNG_LNNAME ${LIBPNG_LIBRARY_NAME})
INSTALL(FILES ${LIBPNG_LIBRARY_WITHOUT_SYMLINK} DESTINATION ${LIB_INSTALL_DESTINATION} RENAME ${LIBPNG_LNNAME} COMPONENT RUNTIME)

#libfreetype.so.6
GET_FILENAME_COMPONENT(LIBFREETYPE_LIBRARY_WITHOUT_SYMLINK ${FREETYPE_LIBRARY} REALPATH)
GET_FILENAME_COMPONENT(LIBFREETYPE_LIBRARY_NAME ${LIBFREETYPE_LIBRARY_WITHOUT_SYMLINK} NAME)
STRING(REGEX REPLACE "[^so]+$" ".6" LIBFREETYPE_LNNAME ${LIBFREETYPE_LIBRARY_NAME})
INSTALL(FILES ${LIBFREETYPE_LIBRARY_WITHOUT_SYMLINK} DESTINATION ${LIB_INSTALL_DESTINATION} RENAME ${LIBFREETYPE_LNNAME} COMPONENT RUNTIME)

#INSTALL(DIRECTORY ${QT_LIBS_DIR}/fonts DESTINATION ${LIB_INSTALL_DESTINATION})
ENDIF(OS_WINDOWS)

Expand Down

0 comments on commit 1919259

Please sign in to comment.