Generate QtIFW installers with CPack in the CMakeLists.txt file.
This commit is contained in:
parent
196f7b7065
commit
d40e85eb06
|
@ -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)
|
Loading…
Reference in New Issue