views:

16

answers:

1

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?

+1  A: 

Take a look at the CPACK_TOPLEVEL_TAG and the CPACK_PACKAGE_FILE_NAME variables in the documentation.

the_void
CPACK_PACKAGE_FILE_NAME works for me, CPACK_TOPLEVEL_TAG don't. Thank you very much!