[CMake] Cpack Nsis not installing libraries

Mauricio Klein mauricio.klein.msk at gmail.com
Mon Feb 27 14:02:39 EST 2012


Hello everybody!

I'm creating a NSIS package using CPack to install my software.

The code is compilled using Visual Studio 9, and the compilation + packing
is working well.

But, once i install the software using the generated NSIS package, the
program doesn't start because NSIS did't installed the required libraries.

The strange is that in my CMakeLists.txt, i tell that my binary requires
these libraries.

The libraries are:
* OpenSSL
* Pthreads
(both found using find macros)


The piece of configuration that defines these relashionship is showed
bellow:
-------------------------------------------------------------------------------------
find_package(Pthreads REQUIRED)
find_package(OpenSSL REQUIRED)

include_directories(${OPENSSL_INCLUDE_DIR})
include_directories(${PTHREADS_INCLUDE_DIR})

install(TARGETS MyBin DESTINATION "MyBin1-0/bin")
install(TARGETS ${PTHREADS} DESTINATION "MyBin1-0/bin")
install(TARGETS ${OPENSSL} DESTINATION "MyBin1-0/bin")
-------------------------------------------------------------------------------------

The "MyBin" binary is installed well, but the libraries of Pthreads and
OpenSSL not!

Any hint??

Thanks in advance for your attention, and any help is very welcome!

-- 
Best regards,

Maurício Souza Klein.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120227/b9aaf4f9/attachment.htm>


More information about the CMake mailing list