1 2 3 4
if(CPACK_GENERATOR=="ZIP") set(CPACK_INCLUDE_TOPLEVEL_DIRECTORY 1) endif(CPACK_GENERATOR=="ZIP")