-
Notifications
You must be signed in to change notification settings - Fork 23
Build on any OS with CLion
Marcus Hudritsch edited this page Oct 30, 2018
·
20 revisions
- All C++ projects can also be built with the platform independent IDE CLion from JetBrains. For Windows without Visual Studio download the MinGW version with the GNU toolchain. For Windows, we recommend to build and work with Visual Studio.
- Clone the SLProject GIT repository into a directory of your choice.
- Install the latest CMake. You need at least CMake Version 3.3.
- Open the QtCreator IDE.
- Choose Open File or Project... and select the top-level CMakeLists.txt file in the SLProject root folder.
-
Set build configurations: Uncheck all except the Debug and the Release configuration. Change or leave the proposed build directories. Press Configure Project:
-
Parallel build: Open the Project Settings on the left toolbar. Expand the Build Steps. In the field Tool Arguments enter -j8. This guides the make process to build the project in parallel with 8 threads.
-
Start Application: Click on the green run button to start the selected application. You can select there the application and configuration to start as well: