Commit a27584e1 authored by jehan's avatar jehan

add shills file for deb package

parent 98eebe53
......@@ -59,4 +59,13 @@ if("${CPACK_GENERATOR}" STREQUAL "RPM" OR "${CPACK_GENERATOR}" STREQUAL "DEB")
endif()
endif()
if("${CPACK_GENERATOR}" STREQUAL "DEB")
set (CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
set(SHLIBS_FILE "${CMAKE_CURRENT_BINARY_DIR}/shlibs")
get_target_property(BCTOOLBOX_SOVERSION bctoolbox SOVERSION)
file(WRITE "${SHLIBS_FILE}" "libbctoolbox ${BCTOOLBOX_SOVERSION} ${CPACK_PACKAGE_NAME}\n")
execute_process(COMMAND chmod 644 "${SHLIBS_FILE}")
set(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA ${SHLIBS_FILE})
endif()
include(CPack)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment