diff options
author | Jose Fonseca <jfonseca@vmware.com> | 2016-03-22 17:55:55 +0000 |
---|---|---|
committer | Jose Fonseca <jfonseca@vmware.com> | 2016-03-22 17:55:55 +0000 |
commit | e98e1e5cb051463d710bc5612b204bd4956b930b (patch) | |
tree | 408d94cdcde7c91355bfb68e7a4d4eb827a1cd85 /gui | |
parent | 2ffbc809c8f3f21446096629478507ae291e1a13 (diff) |
cmake: Pass build type option to windeployqt.
Diffstat (limited to 'gui')
-rw-r--r-- | gui/CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gui/CMakeLists.txt b/gui/CMakeLists.txt index 251ef3f4..06fd4919 100644 --- a/gui/CMakeLists.txt +++ b/gui/CMakeLists.txt @@ -153,10 +153,18 @@ if (WIN32 AND NOT CMAKE_CROSSCOMPILING AND NOT CMAKE_VERSION VERSION_LESS 3.1) string (REPLACE "\\" "\\\\" QT_BIN_DIR_NATIVE "${QT_BIN_DIR_NATIVE}") install (CODE " message (STATUS \"Running Qt Deploy Tool...\") + if (CMAKE_INSTALL_CONFIG_NAME STREQUAL \"Debug\") + list (APPEND QT_WINDEPLOYQT_FLAGS --debug) + elseif (CMAKE_INSTALL_CONFIG_NAME STREQUAL \"RelWithDebInfo\") + list (APPEND QT_WINDEPLOYQT_FLAGS --release-with-debug-info) + else () + list (APPEND QT_WINDEPLOYQT_FLAGS --release) + endif () execute_process (COMMAND \"${CMAKE_COMMAND}\" -E env \"Path=${QT_BIN_DIR_NATIVE};\$ENV{SystemRoot}\\\\System32;\$ENV{SystemRoot}\" \"${QT_WINDEPLOYQT_EXECUTABLE}\" + \${QT_WINDEPLOYQT_FLAGS} \"\${CMAKE_INSTALL_PREFIX}/bin/qapitrace.exe\" ) ") |