Compare commits

...

2 Commits

Author SHA1 Message Date
Martin Felis ec3e9f78ba Refined toolchain file. 2021-01-31 21:46:11 +01:00
Martin Felis fc16eab7dd Fixed Qt version, extended documentation. 2021-01-31 21:33:30 +01:00
2 changed files with 12 additions and 11 deletions

View File

@ -6,10 +6,13 @@ Parts of it based on: https://gist.github.com/HiImJulien/3eb47d7d874fe5483810bd7
## Requirements
- Clang Version 10
- Clang Version >= 10
- Visual Studio Build Tools: https://visualstudio.microsoft.com/downloads/
- The following components are sufficient:
* MSVC v142 - VS 2019 C++-x64/x86-Buildtools (v14.28)
+ Windows 10 SDK (10.0.19041.0)
- Qt5: https://download.qt.io/official_releases/qt
- again when installing it is sufficient to install msvc version of Qt5
## Instructions Linux
@ -41,16 +44,12 @@ Parts of it based on: https://gist.github.com/HiImJulien/3eb47d7d874fe5483810bd7
- Download and Install Qt5 (MinGW libraries not needed)
- Clang 10 (https://releases.llvm.org/download.html)
- Install MinGW Make
- Install JetBrains CLion (https://jetbrains.com/clion)
### Steps
- Open project
- Open project with CLion
- Adjust Toolchain
- Go to Toolchain Settings
- Remove existing Toolchains
- Add MinGW Toolchain
- Adjust CMake Profiles
- Add `-DCMAKE_TOOLCHAIN_FILE=clang_windows_toolchain.cmake` as CMake
parameters
- Choose Visual Studio Toolchain
- Add to the CMake Options:
- `-DCMAKE_TOOLCHAIN_FILE=clang_windows_toolchain.cmake`

View File

@ -1,7 +1,7 @@
# Cross toolchain configuration for using clang-cl.
set(WINSDK_VER "10.0.19041.0")
set(QT5_VERSION "5.12.20")
set(QT5_VERSION "5.12.10")
if(WIN32)
set(CMAKE_C_COMPILER "C:/llvm/bin/clang-cl.exe")
@ -25,6 +25,8 @@ else()
set(WINSDK_BASE "${PROJECT_SOURCE_DIR}/msvc_build_tools/Kit")
endif()
message(STATUS "Qt5 Directory: ${QT_INSTALL_PATH}")
set(CMAKE_SYSTEM_NAME Windows)
set(CMAKE_SYSTEM_VERSION 10.0)
set(CMAKE_SYSTEM_PROCESSOR AMD64)