[CMake] FindQt4.cmake to automatically include QT_USE_FILE?
John Drescher
drescherjm at gmail.com
Tue Jun 7 09:21:12 EDT 2011
> If you don't care for the macros and want to set up the
> include-directories and defines yourself, no. Also, it is common to
> find_package(Qt4) in the top-level CMakeLists.txt file, but then include
> QT_USE_FILE only in specific subdirectories, where Qt is actually used.
>
I have started doing that in my projects. It cuts down on the
unnecessary includes for subprojects that do not need Qt.
John
More information about the CMake
mailing list