[Cmake] target directory?
Bill Hoffman
bill.hoffman at kitware.com
Fri Jun 14 07:43:28 EDT 2002
If you set LIBRARY_OUTPUT_PATH and/or EXECUTABLE_OUTPUT_PATH it will change where all the libraries go for your project.
Here is what happens in VTK:
SET (LIBRARY_OUTPUT_PATH ${VTK_BINARY_DIR}/bin/ CACHE PATH "Single output directory for building all libraries.")
SET (EXECUTABLE_OUTPUT_PATH ${VTK_BINARY_DIR}/bin/ CACHE PATH "Single output directory for building all executables.")
For unix, you can also use the install targets, or you can use a CUSTOM_COMMAND to copy the library after it is built.
-Bill
At 12:19 PM 6/14/2002 +0200, Vlad Popovici wrote:
>Hi all,
>
>I have a (probably simple) question: How can I specify the target directory
>for a library? For ex. I want to generate a library "libxyz.a" in directory
>"path". Using ADD_LIBRARY("path"/"libxyz" ...) doesn't work, as CMake will
>append "lib" to the whole target string. I assume there's a simple and
>obvious way to do it, but I couldn't figure it out...
>
>Thank you!
>
>Have a nice weekend,
>
>Vlad
>
>--
>Vlad POPOVICI
>http://ltswww.epfl.ch/~vlad
>Signal Processing Institute STI-ITS
>Swiss Federal Institute of Technology EPFL
>Tel: +41 21 6935646
>Fax: +41 21 6937600
>_______________________________________________
>Cmake mailing list
>Cmake at public.kitware.com
>http://public.kitware.com/mailman/listinfo/cmake
More information about the CMake
mailing list