qmakebuild-system

Does qmake support running sanity checks on project dependencies?


I'm working on a legacy Qt project which relies heavily on qmake, and I've experienced a fair share of subtle build errors which could be easily avoided with some sanity checks, such as verifying if a library or a file is actually where it's expected to be.

Does anyone know if qmake supports running sanity checks at the prebuild stage?


Solution

  • qmake supports test functions which can be used to test preconditiosn. See qmake manual's page on test functions.