summaryrefslogtreecommitdiffstats
path: root/win/packaging/CPackZIPConfig.cmake
blob: 3ce85625e6c431bb5336047ec17c0dfe6664a0cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
INCLUDE(CPackConfig.cmake)
SET(CPACK_GENERATOR ZIP)
set(CPACK_ARCHIVE_COMPONENT_INSTALL ON)
set(CPACK_COMPONENTS_GROUPING ALL_COMPONENTS_IN_ONE)
SET(CPACK_COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY ON)
include(${CMAKE_CURRENT_LIST_DIR}/ComponentsIgnore.cmake)
FOREACH(it ${COMPONENTS_IGNORE})
  list(FIND CPACK_COMPONENTS_ALL  "${it}" index)
  IF(index GREATER 0)
    LIST(REMOVE_AT CPACK_COMPONENTS_ALL ${index})
  ENDIF()
ENDFOREACH()