Re: [CMake] Dynamic linking doesn't work after install

2011-04-22 Thread Marcus D. Hanwell
On Fri, Apr 22, 2011 at 9:57 AM, David Doria wrote: >> I think the CMake page on RPATHs might be what you are looking for. >> >> http://www.cmake.org/Wiki/CMake_RPATH_handling > > Yea I read that, but I didn't really follow/see how to fix this > problem. Surely there is a "just copy the executable

Re: [CMake] Dynamic linking doesn't work after install

2011-04-22 Thread David Doria
> I think the CMake page on RPATHs might be what you are looking for. > > http://www.cmake.org/Wiki/CMake_RPATH_handling > > Marcus > Yea I read that, but I didn't really follow/see how to fix this problem. Surely there is a "just copy the executable" option? David ___

Re: [CMake] Dynamic linking doesn't work after install

2011-04-22 Thread Marcus D. Hanwell
On Fri, Apr 22, 2011 at 9:48 AM, David Doria wrote: > I have created an executable like this: > >  add_executable(ImageCompleter ${AppSources}) >  target_link_libraries(ImageCompleter ${LibrariesAlwaysUsed}) > >  INSTALL( TARGETS ImageCompleter >    RUNTIME DESTINATION ${INSTALL_DIR} ) > > When I

[CMake] Dynamic linking doesn't work after install

2011-04-22 Thread David Doria
I have created an executable like this: add_executable(ImageCompleter ${AppSources}) target_link_libraries(ImageCompleter ${LibrariesAlwaysUsed}) INSTALL( TARGETS ImageCompleter RUNTIME DESTINATION ${INSTALL_DIR} ) When I run the one that is created with 'make', it works fine. However,