Finding custom qmake path

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Finding custom qmake path

Stéphane Ancelot

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



--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|

Re: Finding custom qmake path

Stéphane Ancelot

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



--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|

Re: Finding custom qmake path

Игорь Иванов

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




--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake