Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change package destination folder in CPack?

I have a multiple module CMake project with a root CMakeLists.txt with multipe add_subdirectory macros.

As far as I understand the default for CPack/CMake is to create package in project root folder, where root CMakeLists.txt resides. I would like to create a separate install module, with its own folder and create packages there? How to do this?

like image 347
seas Avatar asked Jul 10 '10 12:07

seas


1 Answers

To get the created packages in the "packages" subdirectory of your build directory, use:

SET(CPACK_OUTPUT_FILE_PREFIX packages)
like image 133
Mark Stijnman Avatar answered Sep 25 '22 22:09

Mark Stijnman