jom is a parallel make tool for Windows. It is an nmake clone with support for parallel builds.
qmake
nmakenmake checkCMake builds must use a separate build directory.
mkdir build
cd build
cmake ..\jom -G "NMake Makefiles" -DCMAKE_PREFIX_PATH=<qt-path> -DCMAKE_INSTALL_PREFIX=<install-path>
nmake
nmake installEnable tests during configuration:
cmake ..\jom -G "NMake Makefiles" -DBUILD_TESTING=ON
nmake
ctest -VLike nmake, jom reads default command line arguments from an environment
variable: JOMFLAGS. If JOMFLAGS is not set, MAKEFLAGS is read.
This is useful to set up separate flags for nmake and jom, e.g.
set MAKEFLAGS=L
set JOMFLAGS=Lj8The .SYNC directive on the right side of a description block prevents
jom from running all of its dependents in parallel.
all: Init Prebuild .SYNC Build .SYNC PostbuildThis adds additional dependencies so that Init and Prebuild are
built before Build, and Build is built before Postbuild.