Refined toolchain file.

master
Martin Felis 2021-01-31 21:46:11 +01:00
parent fc16eab7dd
commit ec3e9f78ba
2 changed files with 6 additions and 18 deletions

View File

@ -44,26 +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 (VS Toolchain)
### Steps
- Open project
- Open project with CLion
- Adjust Toolchain
- Choose Visual Studio Toolchain
- Set CMake Options to:
`-DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=C:/llvm/bin/clang-cl.exe -DCMAKE_CXX_COMPILER=C:/llvm/bin/clang-cl.exe -DCMAKE_C_FLAGS=-m64 -DCMAKE_CXX_FLAGS=-m64 -DCMAKE_LINKER=c:/llvm/bin/lld-link.exe`
### Steps (MinGW Toolchain)
- Open project
- Adjust Toolchain
- Go to Toolchain Settings
- Remove existing Visual Studio Toolchain
- Add MinGW Toolchain
- Adjust CMake Profiles
- Add `-DCMAKE_TOOLCHAIN_FILE=clang_windows_toolchain.cmake` as CMake
parameters
**TODO**: How to set up debugger?
- Add to the CMake Options:
- `-DCMAKE_TOOLCHAIN_FILE=clang_windows_toolchain.cmake`

View File

@ -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)