|
Boost Interest : |
Subject: [Boost-cmake] dll install location on win32
From: Mark B. Allan (Mark.B.Allan_at_[hidden])
Date: 2009-12-10 16:32:50
It looks like the cmake-boost install defaults to putting *.dll and
*.lib files in the same directory (lib). Is there an option to install
the *.dll files into bin?
CMake supports this with the install "RUNTIME DESTINATION" directive. I
use a simple macro to set this up, e.g.
macro( install_library TARGET_NAME )
install(TARGETS ${TARGET_NAME}
EXPORT ${PROJECT_NAME}
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
RUNTIME DESTINATION bin
)
endmacro( install_library )
The benefit to this is that you don't have to add lib to your PATH when
you want to run something in bin. I realize that the jam build puts
everything in lib, but IMHO this is the wrong thing to do on windows.
Thanks,
-Mark
-----------------------------------------------------------
Mark B. Allan NASA Ames Research Center
SGT, Inc. Intelligent Robotics Group
650 - 604 - 0537 Mail Stop 269-2
Mark.B.Allan_at_[hidden] Moffett Field, CA 94035
-----------------------------------------------------------