Working with Qt Creator
Settings (MSYS2)
Setup CMake-Kit
Add CMake under
Tools -> Options -> Kits -> CMake
Add C and C++ Compilers under
Tools -> Options -> Kits -> Compilers
Add Debugger under
Tools -> Options -> Kits -> Debuggers
Add Kit under
Tools -> Options -> Kits -> Kits
Adjust
CMake Generator
underTools -> Options -> Kits -> Kits
toMSYS Makefiles
Note
Change the environment variable to
MAKEFLAGS=-j4
(or similar) to enable parallel building on the kit level.
Setup Project
Load the project by opening a
CMakeLists.txt
file and configure it to use the new kit.Setup missing CMake flags (c.f. :ref:’CMake’)
Todo
The configuration is still “itchy”, as Qt creator changes the interface with every version See https://gitlab.eclipse.org/eclipse/simopenpass/simopenpass/-/issues/149
Settings (Linux)
Setup Kit
Qt Creator should be able to come up with a suiteable kit for developing openPASS on its own. If not, check if all Installing Prerequisites are met. Also, the steps above should be a good indicator, where to look for potential troubles.
Setup Project
Load the project by opening a
CMakeLists.txt
file and configure it to use a proper kit.Setup missing CMake flags (c.f. :ref:’CMake’)
Todo
The configuration is still “itchy”, as Qt creator changes the interface with every version See https://gitlab.eclipse.org/eclipse/simopenpass/simopenpass/-/issues/149
Alternative Method
Version Issues
Qt Creator is constantly improving the CMake integration. Unfortunatly, some versions seem to be buggy.
Tested Versions: 4.13.2 | 4.12.2