On 7/13/07, Mike Jackson <[EMAIL PROTECTED]> wrote:
I am trying to figure out in cmake what extra commands I need to set so that when I do an :INSTALL(TARGETS ${MXADATAMODEL_LIB_NAME} LIBRARY DESTINATION lib ARCHIVE DESTINATION lib) the .dll will actually get copied when running the "install" target under VS 2003.Net? At least I am under the impression that I need the .dll files in the same directory as the .lib, which is being copied.
No, the .dll is going to have to be in the binary search path of your application. You want the RUNTIME option.
Looking through the docs is not really helping at this point.
CMake 2.4.6 has this pretty clearly documented under INSTALL, regarding the TARGETS signature, and the options ARCHIVE, LIBRARY, and RUNTIME. Are you using an earlier version of CMake? Or are you not greatly familiar with .dll theory of operation on Windows? Or do you think the docs aren't that helpful? I think they're fine in this case, and I'm known for picking on the docs, but maybe you think they need more. You can look at Chicken's build to see how it's all done. http://www.call-with-current-continuation.org Cheers, Brandon Van Every _______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
