[CMake] Moving build artifacts to custom directory

Marc CHEVRIER marc.chevrier at gmail.com
Wed Jul 3 03:22:26 EDT 2019


Have a look at variables ‘CMAKE_*_OUTPUT_DIRECTORY’ (Like CMAKE_ARCHIVE_OUTPUT_DIRECTORY. See https://cmake.org/cmake/help/latest/manual/cmake-variables.7.html) and target properties ‘*_OUTPUT_DIRECTORY’ (Like ARCHIVE_OUTPUT_DIRECTORY. See https://cmake.org/cmake/help/latest/manual/cmake-properties.7.html).

Le 3 juil. 2019 à 08:19 +0200, vinay kumar Kotegowder <vinay.kotegowder at gmail.com>, a écrit :
> Hi Everyone,
>
> How do I move the build artifacts(ELFs, Static libraries, custom
> intermediate files) to custom folder at the build of "cmake --build ."
> ?
>
> Also does "cmake --build . -- clean" takes care of cleaning these
> build artifacts from the directory to which they previously moved?
>
> Regards,
> Vinay
> --
>
> 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:
> https://cmake.org/mailman/listinfo/cmake
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20190703/2136faf6/attachment-0001.html>


More information about the CMake mailing list