Generate two different package using CPack in cmake : Linux
I just need to set CPACK flag ON.
set(CPACK_ARCHIVE_COMPONENT_INSTALL ON)
just before
include(CPack)
And run command.
make
make install
make package
And it creates two different packages.