Enable CPack on Windows.

This commit is contained in:
Felix Geyer 2012-10-22 20:40:03 +02:00
parent 8b8e55aa17
commit 7d57d08b32

View File

@ -219,8 +219,18 @@ if(APPLE AND NOT (${CMAKE_VERSION} VERSION_LESS 2.8.8))
set(CPACK_DMG_VOLUME_NAME "${PROGNAME}")
set(CPACK_SYSTEM_NAME "OSX")
set(CPACK_PACKAGE_FILE_NAME "${PROGNAME}-${KEEPASSX_VERSION_NUM}")
include(CPacK)
include(CPack)
include(DeployQt4)
install_qt4_executable(${PROGNAME}.app "qjpeg")
endif()
if(MINGW AND NOT (${CMAKE_VERSION} VERSION_LESS 2.8.8))
set(CPACK_GENERATOR "ZIP")
set(CPACK_STRIP_FILES ON)
set(CPACK_PACKAGE_FILE_NAME "${PROGNAME}-${KEEPASSX_VERSION_NUM}")
include(CPack)
include(DeployQt4)
install_qt4_executable(${PROGNAME}.exe "qjpeg;qgif;qico;qtaccessiblewidgets")
endif()