[CMake] question about INSTALL_PROGRAMS vs INSTALL(TARGET
Simon Warfield
warfield at crl.med.harvard.edu
Mon Jun 9 11:08:50 EDT 2008
I am using cmake 2.6.
I notice a difference in behaviour between
INSTALL_PROGRAMS(/bin FILES CreateTriangleModel )
and
INSTALL(TARGETS CreateTriangleModel RUNTIME DESTINATION bin )
In the case of INSTALL_PROGRAMS the build tree binary and the installed
binary are linked with the full path of the shared libraries they use.
In the case of INSTALL(TARGETS the build tree binary is linked with the
full path of the shared libraries, but the installed binary is not. The
installed binary has to find the libraries in e.g. the LD_LIBRARY_PATH
of the user.
Are these supposed to work differently ?
How can I get INSTALL(TARGETS to have the same behavior as
INSTALL_PROGRAMS ?
--
Simon
More information about the CMake
mailing list