[CMake] [CPack]Call "make package" on subprojects from the top directory

Barthelemy Von Haller Barthelemy.Von.Haller at cern.ch
Wed Jul 29 08:20:54 EDT 2015


Hello,

I have a projects looking like this :
Repo
.
├── CMakeLists.txt
├── ProjA
│   ├── cmake
│   │   └── CPackConfig.cmake
│   ├── CMakeLists.txt
│   ├── doc
│   ├── include
│   ├── src
│   └── test
├── ProjB
│   ├── cmake
│   │   └── CPackConfig.cmake
│   ├── CMakeLists.txt
│   ├── doc
│   ├── include
│   ├── src
│   └── test
└── More projects...

Each project (ProjA, ProjB, ...) is buildable on its own. It can be tested, installed and packaged alone.
I want to be able to do the same from the top directory as well. In this case, it would apply the target to all subprojects.
It works fine for "make", "make test", "make install" but not for "make package". With the latter, only the last project is packaged not the others.

Is there a clean way to call CPack from the top directory ?

Thank you,
Barthelemy

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150729/7cd20043/attachment.html>


More information about the CMake mailing list