1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-04-29 15:19:44 +02:00
audacity/cmake-proxies/cmake-modules/AudacityInnoSetup.cmake
Emily Mabrey d73e9eb1cd
Innosetup installer updates
Rename usage of outdated Innosetup functions
Configure CMake to use the same build type for Innosetup target
Use Tenacity logos
Update readme information displayed post-install
Update license information displayed pre-install
Fix installer generation
Cleanup innosetup configuration

Signed-off-by: Emily Mabrey <emabrey@tenacityaudio.org>
2021-09-03 16:18:36 -04:00

42 lines
1.3 KiB
CMake

# Defines innosetup target
# The target will be only generated if InnoSetup 6 is installed.
find_program(
INNO_SETUP_COMPILER
NAMES iscc ISCC
HINTS
"C:/Program Files (x86)/Inno Setup 6"
"C:/Program Files/Inno Setup 6"
)
if( INNO_SETUP_COMPILER )
message(STATUS "Creating target innosetup...")
set( TEMP_PACKAGE_PATH "${CMAKE_BINARY_DIR}/innosetup" )
add_custom_target(
innosetup
COMMAND
${CMAKE_COMMAND}
-DBUILD_DIR=${CMAKE_BINARY_DIR}
-DSOURCE_DIR=${CMAKE_SOURCE_DIR}
-DOUTPUT_DIR=${TEMP_PACKAGE_PATH}
-DINNO_SETUP_COMPILER=${INNO_SETUP_COMPILER}
-DEMBED_MANUAL=${${_OPT}package_manual}
-DIS_64_BIT=${IS_64BIT}
-DSIGN=${${_OPT}perform_codesign}
-DWINDOWS_CERTIFICATE=${WINDOWS_CERTIFICATE}
-D WINDOWS_CERTIFICATE_PASSWORD=${WINDOWS_CERTIFICATE_PASSWORD}
-P "${CMAKE_SOURCE_DIR}/win/Inno_Setup_Wizard/BuildInnoSetupInstaller.cmake"
-D CMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
-parallel ${CMAKE_BUILD_PARALLEL_LEVEL}
VERBATIM
)
if( ${_OPT}package_manual )
add_dependencies( innosetup manual )
endif()
set_target_properties( innosetup PROPERTIES FOLDER "packaging" )
endif()