Generate QtIFW installers with CPack in the CMakeLists.txt file.

This commit is contained in:
Username404-59 2021-03-10 15:03:02 +01:00
parent 196f7b7065
commit d40e85eb06
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 2 additions and 2 deletions

View File

@ -79,7 +79,7 @@ if (UNIX AND NOT MINGW)
install(FILES CMakeLists.txt desc.txt LICENSE.txt README.md changelog.txt DESTINATION ${CPACK_RPM_SOURCE_PKG_PACKAGING_INSTALL_PREFIX})
else()
if (NOT DEFINED CPACK_GENERATOR)
set(CPACK_GENERATOR TGZ;STGZ;RPM;DEB)
set(CPACK_GENERATOR TGZ;STGZ;RPM;DEB;IFW)
endif()
install(PROGRAMS
${CMAKE_CURRENT_BINARY_DIR}/ybcon
@ -98,7 +98,7 @@ elseif(MINGW OR MSVC)
set(CPACK_TOPLEVEL_TAG "Win32-${CMAKE_CXX_COMPILER_ARCHITECTURE_ID}")
set(CPACK_NSIS_MODIFY_PATH ON)
set(CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL ON)
set(CPACK_GENERATOR ZIP;NSIS)
set(CPACK_GENERATOR ZIP;IFW;NSIS)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/ybcon.exe DESTINATION bin)
endif()
include(CPack)