I have a CMake project which depends on gsl >= 2.3
for which I would like to distribute a debian package on ubuntu/xenial
. As gsl > 2.3
is not the version shipped with ubuntu/xenial
, I can not use in that case the CPACK_DEBIAN_PACKAGE_SHLIBDEPS
variable to set gsl
as a dependency of my package. Thus, I would like to ship the libgsl
and libgslcblas
dynamic libraries, that I built on my own, with my debian package. I tried the following approach
find_package(GSL 2.3 REQUIRED) --> this return the ${GSL_LIBRARIES} variable
...
install(FILES ${GSL_LIBRARIES} DESTINATION ${DEBIAN_INSTALL_DIR}lib COMPONENT LIB)
but because GSL_LIBRARIES
returns links to the targeted libraries, it installed the links and not the libraries. Would you know how to proceed ?