mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 13:02:28 +01:00
28 lines
829 B
CMake
28 lines
829 B
CMake
FIND_PATH(WIX_DIR heat.exe
|
|
$ENV{WIX_DIR}/bin
|
|
$ENV{ProgramFiles}/wix/bin
|
|
"$ENV{ProgramFiles}/Windows Installer XML v3.0/bin"
|
|
"$ENV{ProgramFiles}/Windows Installer XML v3.5/bin"
|
|
)
|
|
|
|
IF(NOT WIX_DIR)
|
|
MESSAGE(FATAL_ERROR "Cannot find wix")
|
|
ENDIF()
|
|
|
|
FIND_PROGRAM(HEAT_EXECUTABLE heat ${WIX_DIR})
|
|
FIND_PROGRAM(CANDLE_EXECUTABLE candle ${WIX_DIR})
|
|
FIND_PROGRAM(LIGHT_EXECUTABLE light ${WIX_DIR})
|
|
|
|
|
|
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/create_msi.cmake.in
|
|
${CMAKE_CURRENT_BINARY_DIR}/create_msi.cmake
|
|
@ONLY)
|
|
IF(CMAKE_GENERATOR MATCHES "Visual Studio")
|
|
SET(CONFIG_PARAM "-DCMAKE_INSTALL_CONFIG_NAME=${CMAKE_CFG_INTDIR}")
|
|
ENDIF()
|
|
ADD_CUSTOM_TARGET(
|
|
WIX_Installer
|
|
COMMAND set VS_UNICODE_OUTPUT=
|
|
COMMAND ${CMAKE_COMMAND} ${CONFIG_PARAM} -P ${CMAKE_CURRENT_BINARY_DIR}/create_msi.cmake
|
|
)
|
|
|