2013-05-19 17:41:22 +02:00
|
|
|
SET(HEIDISQL_BASE_NAME "HeidiSQL_8.0_Portable")
|
2011-06-01 15:52:52 +02:00
|
|
|
SET(HEIDISQL_ZIP "${HEIDISQL_BASE_NAME}.zip")
|
|
|
|
SET(HEIDISQL_URL "http://heidisql.googlecode.com/files/${HEIDISQL_ZIP}")
|
2011-06-01 21:14:10 +02:00
|
|
|
SET(HEIDISQL_DOWNLOAD_DIR ${THIRD_PARTY_DOWNLOAD_LOCATION}/${HEIDISQL_BASE_NAME})
|
|
|
|
|
|
|
|
IF(NOT EXISTS ${HEIDISQL_DOWNLOAD_DIR}/${HEIDISQL_ZIP})
|
|
|
|
MAKE_DIRECTORY(${HEIDISQL_DOWNLOAD_DIR})
|
|
|
|
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}
|
2011-06-01 15:52:52 +02:00
|
|
|
)
|
|
|
|
ENDIF()
|
2011-06-02 10:06:51 +02:00
|
|
|
|
|
|
|
SET(LIBMYSQLDLL_SOURCE ${HEIDISQL_DOWNLOAD_DIR}/libmysql.dll)
|
2011-06-01 21:14:10 +02:00
|
|
|
IF(CMAKE_SIZEOF_VOID_P EQUAL 4)
|
|
|
|
# Use our libmysql if it is 32 bit.
|
|
|
|
IF(LIBMYSQL_LOCATION)
|
2011-06-02 10:06:51 +02:00
|
|
|
SET(LIBMYSQLDLL_SOURCE "${LIBMYSQL_LOCATION}")
|
2011-06-01 21:14:10 +02:00
|
|
|
ENDIF()
|
|
|
|
ENDIF()
|
2011-06-01 15:52:52 +02:00
|
|
|
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/heidisql.wxi.in ${CMAKE_CURRENT_BINARY_DIR}/heidisql.wxi)
|
|
|
|
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/heidisql_feature.wxi.in ${CMAKE_CURRENT_BINARY_DIR}/heidisql_feature.wxi)
|