[CMake] Finding custom qmake path

Igor Ivanov i.ivanov at trassir.com
Wed Sep 4 06:49:05 EDT 2019


I might be wrong, but I think you can simply use target names, like 
`add_custom_command(COMMAND Qt5::qmake --arg file1 file2)`.

On 03.09.2019 16:36, Stéphane Ancelot wrote:
>
> I solved it using
>
> |get_target_property (QT_QMAKE_EXECUTABLE Qt5::qmake IMPORTED_LOCATION)|
>
> Le 03/09/2019 à 15:05, Stéphane Ancelot a écrit :
>>
>> Hi,
>>
>> Is there a way to find qmake path of a custom setup in order using it 
>> an add_custom_command
>>
>> my QT5 path is available in CMAKE_PREFIX_PATH.
>>
>>
>> Regards,,
>>
>> S.Ancelot
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20190904/313bb236/attachment.html>


More information about the CMake mailing list