diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-05-24 03:53:31 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2019-05-24 04:37:43 -0400 |
| commit | 953ab4e6f6e25b04890f7201b783c2693748af28 (patch) | |
| tree | eeb1194cc84c625f3df6e17de94dd3c7b8dba821 /CMakeLists.txt | |
| parent | dfdea05029da0868115896af14e9f2fb2ff22eea (diff) | |
turned autorcc on so no need for qt5_add_resources() anymore
qt5_wrap_ui() is redundant since autouic is already on
generate INSTALL.vcxproj.user to have the proper debugging settings so ModOrganizer.exe is started from install/bin
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index f424dc78..ced097e1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,3 +16,16 @@ LIST(APPEND CMAKE_PREFIX_PATH ${QT_ROOT}/lib/cmake) LIST(APPEND CMAKE_PREFIX_PATH ${LZ4_ROOT}/dll) ADD_SUBDIRECTORY(src) + +set(vcxproj_user_file "${CMAKE_CURRENT_BINARY_DIR}/INSTALL.vcxproj.user") +if(NOT EXISTS ${vcxproj_user_file}) + FILE(WRITE ${vcxproj_user_file} + "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" + "<Project ToolsVersion=\"Current\" xmlns=\"http://schemas.microsoft.com/developer/msbuild/2003\">\n" + "<PropertyGroup>\n" + "<LocalDebuggerWorkingDirectory>${CMAKE_INSTALL_PREFIX}/bin</LocalDebuggerWorkingDirectory>\n" + "<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>" + "<LocalDebuggerCommand>${CMAKE_INSTALL_PREFIX}/bin/ModOrganizer.exe</LocalDebuggerCommand>\n" + "</PropertyGroup>\n" + "</Project>\n") +endif() |
