Refined toolchain file.
parent
fc16eab7dd
commit
ec3e9f78ba
22
README.md
22
README.md
|
@ -44,26 +44,12 @@ Parts of it based on: https://gist.github.com/HiImJulien/3eb47d7d874fe5483810bd7
|
||||||
|
|
||||||
- Download and Install Qt5 (MinGW libraries not needed)
|
- Download and Install Qt5 (MinGW libraries not needed)
|
||||||
- Clang 10 (https://releases.llvm.org/download.html)
|
- Clang 10 (https://releases.llvm.org/download.html)
|
||||||
- Install MinGW Make
|
|
||||||
- Install JetBrains CLion (https://jetbrains.com/clion)
|
- Install JetBrains CLion (https://jetbrains.com/clion)
|
||||||
|
|
||||||
### Steps (VS Toolchain)
|
### Steps
|
||||||
|
|
||||||
- Open project
|
- Open project with CLion
|
||||||
- Adjust Toolchain
|
- Adjust Toolchain
|
||||||
- Choose Visual Studio Toolchain
|
- Choose Visual Studio Toolchain
|
||||||
- Set CMake Options to:
|
- Add to the CMake Options:
|
||||||
`-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`
|
- `-DCMAKE_TOOLCHAIN_FILE=clang_windows_toolchain.cmake`
|
||||||
|
|
||||||
### 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?
|
|
|
@ -25,6 +25,8 @@ else()
|
||||||
set(WINSDK_BASE "${PROJECT_SOURCE_DIR}/msvc_build_tools/Kit")
|
set(WINSDK_BASE "${PROJECT_SOURCE_DIR}/msvc_build_tools/Kit")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
message(STATUS "Qt5 Directory: ${QT_INSTALL_PATH}")
|
||||||
|
|
||||||
set(CMAKE_SYSTEM_NAME Windows)
|
set(CMAKE_SYSTEM_NAME Windows)
|
||||||
set(CMAKE_SYSTEM_VERSION 10.0)
|
set(CMAKE_SYSTEM_VERSION 10.0)
|
||||||
set(CMAKE_SYSTEM_PROCESSOR AMD64)
|
set(CMAKE_SYSTEM_PROCESSOR AMD64)
|
||||||
|
|
Loading…
Reference in New Issue