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





--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to