On 23. Aug, 2010, at 11:43 , norulez wrote:

> Hello,
> 
> I've 3rdparty projects which are using qmake as the build system. How can I 
> execute qmake from within an existing project to integrate such projects into 
> the build process?
> 
> Thanks in advance
> 
> Best Regards
> NoRulez

Probably best do find_package(Qt4 REQUIRED) and then use ${QT_QMAKE_EXECUTABLE} 
in an ExternalProject_Add() invocation. Alternatively, instead of using the 
ExternalProject_Add, you could simply create a add_custom_target which runs 
qmake. In any case, you should then create IMPORTED libraries using 
add_library, and have all targets that link against them depend on the custom 
target.

I hope this isn't too abstract ;-)

Michael

_______________________________________________
Powered by www.kitware.com

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

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

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

Reply via email to