On 23.09.2014 19:12, Roland Schulz wrote:
Have you got a solution to the problem you mentioned in your first email:
I suppose it might be slightly more complex given that the import
library that is being linked to and the DLL that corresponds to the
import library might not be in the same location (and cmake might know
the location of the one but not always the location of the the other).
- For local targets CMake does have the location (these are also
interesting but the main selling point would imo be external libraries).
- For imported targets CMake may have DLL locations.
More likely when set up by package configuration files (e.g. Qt5 sets
them) than when set up by find modules (e.g. FindQt4 does not set them).
There might be incentive to add those locations when they start to be
more useful.
- It might be possible to guess the DLL location from a given import
library (assuming it was provided with a full path); probably not
something you can rely on but it might be able to guess the location
often enough to be convenient
- Additional locations could be provided manually by target property
On windows when you deploy to a system different from your own it
is expected and common practice that you deploy your runtime
requirements as well.
You can not expect a preexisting installation of your library
requirements nor can you expect them to be in the same location as
in your development system.
I think you are referring to making a binary cpack installation
package. I was thinking about installing on the build system. Then It
would still be different from the build directory.
Yes, but I think that is the least common use case (maybe even more so
on windows).
CPack uses the same install commands for packaging and local install and
I don't think CMake makes the distinction between deploying locally and
remotely.
Nils
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers