2023-02-09 10:32:25 +01:00
|
|
|
SET(HEIDISQL_BASE_NAME "HeidiSQL_12.3_32_Portable")
|
2015-06-05 23:33:23 +02:00
|
|
|
SET(HEIDISQL_ZIP "${HEIDISQL_BASE_NAME}.zip")
|
|
|
|
SET(HEIDISQL_URL "http://www.heidisql.com/downloads/releases/${HEIDISQL_ZIP}")
|
|
|
|
SET(HEIDISQL_DOWNLOAD_DIR ${THIRD_PARTY_DOWNLOAD_LOCATION}/${HEIDISQL_BASE_NAME})
|
|
|
|
|
|
|
|
IF(NOT EXISTS ${HEIDISQL_DOWNLOAD_DIR}/${HEIDISQL_ZIP})
|
2015-06-05 23:54:19 +02:00
|
|
|
MAKE_DIRECTORY(${HEIDISQL_DOWNLOAD_DIR})
|
2015-06-05 23:33:23 +02:00
|
|
|
MESSAGE(STATUS "Downloading ${HEIDISQL_URL} to ${HEIDISQL_DOWNLOAD_DIR}/${HEIDISQL_ZIP}")
|
|
|
|
FILE(DOWNLOAD ${HEIDISQL_URL} ${HEIDISQL_DOWNLOAD_DIR}/${HEIDISQL_ZIP} TIMEOUT 60)
|
|
|
|
EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E chdir ${HEIDISQL_DOWNLOAD_DIR}
|
|
|
|
${CMAKE_COMMAND} -E tar xfz ${HEIDISQL_DOWNLOAD_DIR}/${HEIDISQL_ZIP}
|
|
|
|
)
|
|
|
|
ENDIF()
|
|
|
|
|
2019-07-27 07:50:12 +02:00
|
|
|
CONFIGURE_FILE(${SRCDIR}/heidisql.wxi.in ${CMAKE_CURRENT_BINARY_DIR}/heidisql.wxi)
|
|
|
|
CONFIGURE_FILE(${SRCDIR}/heidisql_feature.wxi.in ${CMAKE_CURRENT_BINARY_DIR}/heidisql_feature.wxi)
|