On 2013-09-10 19:12, Littlefield, Tyler wrote:
On 9/10/2013 6:43 PM, Matthew Woehlke wrote:
On 2013-09-10 17:38, Littlefield, Tyler wrote:
My final question is how to make the debug/release build work, as well
as to allow to let this install. I need to install libxlog.a and the
include directory
as well to includedir/xlog/*. Is there a typical method to do this?

See the 'install' command.

Awesome, thanks. I've found that actually, I should have been more
specific. I need to figure out which directory the user wants them
installed in. Is there a standard method for pulling that information?
Thanks,

Convention is to install into a well-defined tree structure beneath the install prefix, which is specified by the DESTINATION argument¹ to install(). I wouldn't recommend deviating from that.

The user can control the prefix by setting CMAKE_INSTALL_PREFIX; maybe that is what you are looking for?

(¹...which is sometimes per library-type, e.g. 'RUNTIME', etc. See the documentation for install().)

--
Matthew

--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to