create-demo-win-zip - create a 7z with the example execs

Add a "createZipDemo" buildsystem target to run this.
The 7z includes the Qt runtime.
This commit is contained in:
Allen Winter
2022-10-27 11:45:55 -04:00
parent f1ae102383
commit a82f2afa64
2 changed files with 58 additions and 0 deletions

View File

@@ -394,4 +394,15 @@ if(${PROJECT_NAME}_IS_ROOT_PROJECT)
include(ECMUninstallTarget)
endif()
# Deployment
if(WIN32)
add_custom_target(
createZipDemo
COMMAND cmd /c ${CMAKE_CURRENT_SOURCE_DIR}\\deploy\\create-demo-win-zip.bat
${CMAKE_PROJECT_NAME}-${${PROJECT_NAME}_VERSION}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Target to generate the Zip demo installer for Windows"
)
endif()
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)