Solved qmake equivalent of cmake's find_program
-
Is there a qmake equivalent for CMake's find_program?
-
Hi,
I'm not aware of such a feature (doesn't mean it doesn't exist though). For *nix style OS you can use something like
MY_APPLICATION = $$system(which application)
And you'd get the path to the executable file.
Otherwise, you can also use CMake for your project.
-
I went with
exists(/usr/bin/ccache)
. There is alsosystem(ccache -V)
, but that spams an error message if it's not available. -
Forgot about that one ! Good idea !