OpenCOR (and its corresponding tests) can be built, tested and run either from the command line or using Qt Creator. By default, Ninja is used to build OpenCOR, but if it is not available, then JOM (on Windows) or Make (on Linux/macOS) will be used.
Various batch/VBScript files (
.vbs) and shell scripts are available on Windows and Linux/macOS, respectively:
Note: if you use
make, then OpenCOR will, by default, be built sequentially.
You can, however, specify a maximum number of jobs (
n) to be run simultaneously by calling
make -j [n].
n value is provided, then as many jobs as possible will be run simultaneously.
Note: on Windows, if run OpenCOR from a console window by entering
run.bat will be executed (rather than
run.vbs), offering you the opportunity to use OpenCOR as a CLI application.
However, if you run OpenCOR by double clicking
run.bat in, say, Windows Explorer, then a console window will quickly appear and disappear.
To avoid this, use
Start Qt Creator;
[OpenCOR]/CMakeLists.txt (by selecting the
Open File or Project... menu or by pressing
Configure the project as you see fit and click on the
Configure Project button;
Configure CMake, if needed, by going to the
Projects page and setting, for example,
ON, and click on the
Apply Configuration Changes button; and
Build and run OpenCOR (by selecting the
Run menu or by pressing