[CMake] Windows NSIS installer shared libraries

Leek, Jim leek2 at llnl.gov
Fri Jun 14 01:43:55 EDT 2013


I'm putting together an NSIS installer for my project on Windows.  It works fine for Static installs, but shared library installs don't work because the binary is in the bin directory and the libraries are in the lib directory.  I would know how to fix this on Linux, but am a bit at a loss on Windows.


1.      Is there a way to set a path to tell the binary where the installed libraries are, like rpath?

2.      An alternative, mostly used in windows, is to install the shared libraries in the same directory as the binary.  Should I just stick all the libraries in the bin dir on windows, like so?

if("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows")

  install (TARGETS psuade-bin DESTINATION bin)

install (TARGETS psuade-lib DESTINATION bin)

3.      How do I set the install project name?  It insists on calling it psuade_project 1.6.1, I'd prefer just psuade, or maybe psuade 1.6.0.  (I have no idea where that final '1' came from.)

Thanks
Jim





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130614/8fd36a2e/attachment.htm>


More information about the CMake mailing list