summaryrefslogtreecommitdiffstats
path: root/Modules/FindQt4.cmake
Commit message (Collapse)AuthorAgeFilesLines
* Convert builtin help to reStructuredText source filesKitware Robot2013-10-151-339/+501
| | | | | | | | Run the convert-help.bash script to convert documentation: ./convert-help.bash "/path/to/CMake-build/bin" Then remove it.
* Merge topic 'Qt4-INTERFACE_LINK_LIBRARIES'Brad King2013-07-261-0/+5
|\ | | | | | | | | 0f267c0 FindQt4: Populate the INTERFACE_LINK_LIBRARIES of IMPORTED targets.
| * FindQt4: Populate the INTERFACE_LINK_LIBRARIES of IMPORTED targets.Stephen Kelly2013-07-251-0/+5
| | | | | | | | | | This makes the IMPORTED_LINK_INTERFACE_LIBRARIES_<CONFIG> properties obsolete.
* | Merge topic 'fix-FindQt4-available-modules'Brad King2013-07-251-1/+1
|\ \ | |/ |/| | | | | d57c1c1 FindQt4: Re-add QAxServer to the QT_MODULES.
| * FindQt4: Re-add QAxServer to the QT_MODULES.Stephen Kelly2013-07-241-1/+1
| | | | | | | | | | This was removed instead of moved in commit b8af46cb (FindQt4: Don't fail if certain Qt modules are unavailable.).
* | Merge topic 'fix-FindQt4-available-modules'Brad King2013-07-241-18/+12
|\ \ | |/ | | | | | | 969e7ee FindQt4: Don't use Qt component _FOUND vars before they're defined (#14286)
| * FindQt4: Don't use Qt component _FOUND vars before they're defined (#14286)Stephen Kelly2013-07-241-18/+12
| | | | | | | | | | | | | | | | | | This fixes a regression introduced by commit b8af46cb (FindQt4: Don't fail if certain Qt modules are unavailable., 2013-05-23) The _FOUND variable is set by the _QT4_ADJUST_LIB_VARS macro, so invoke that unconditionally, and guard only the set_property calls, as described in the original bug report (#14165).
* | Mark qt4_use_modules and qt4_automoc as obsolete.Stephen Kelly2013-07-141-0/+2
| | | | | | | | | | The QT_QMAKE_EXECUTABLE has to be passed through the cmake calls because the executable may not be in the PATH.
* | Merge topic 'find-Qt4-granular-modules'Brad King2013-06-031-20/+34
|\ \ | |/ | | | | | | b8af46c FindQt4: Don't fail if certain Qt modules are unavailable.
| * FindQt4: Don't fail if certain Qt modules are unavailable.Stephen Kelly2013-06-031-20/+34
| |
* | Merge topic 'fix-build-without-qt4-with-qt5'Brad King2013-05-211-0/+3
|\ \ | | | | | | | | | | | | 444e752 FindQt4: Fix QUIET failure with Qt 5 but not Qt 4
| * | FindQt4: Fix QUIET failure with Qt 5 but not Qt 4Stephen Kelly2013-05-211-0/+3
| |/ | | | | | | | | | | | | | | The call find_package(Qt4 QUIET) should be non-FATAL in that case. This fixes #14142.
* | Fix spelling and typos (product names)Andreas Mohr2013-05-071-2/+2
| | | | | | | | API, Borland, MinGW, UNIX, Mac OS X.
* | Fix spelling and typos (non-binary)Andreas Mohr2013-05-071-4/+4
|/
* Merge topic 'findqt4-withqt5'Brad King2013-03-181-0/+7
|\ | | | | | | | | 252bfd3 FindQt4: If Qt5 is in CMAKE_PREFIX_PATH, be sure to find Qt4 includes.
| * FindQt4: If Qt5 is in CMAKE_PREFIX_PATH, be sure to find Qt4 includes.Clinton Stimpson2013-03-181-0/+7
| |
* | Merge topic 'set-QT_MAJOR_VERSION'Brad King2013-03-181-0/+6
|\ \ | | | | | | | | | | | | 4aa10cd FindQt4: Set the INTERFACE_QT_MAJOR_VERSION for Qt4::QtCore
| * | FindQt4: Set the INTERFACE_QT_MAJOR_VERSION for Qt4::QtCoreStephen Kelly2013-03-181-0/+6
| |/ | | | | | | | | | | | | With a similar commit in Qt 5, this will error at CMake time if an attempt is made to use target_link_libraries(foo Qt4::QtCore Qt5::Core)
* | FindQt4: Set the Qt4_FOUND variable if Qt4 is foundStephen Kelly2013-03-181-3/+5
|/ | | | Provide the old QT4_FOUND for compatibility.
* FindQt4: Fix QT_QMAKE{_QMAKE => }_EXECUTABLE typoBrad King2013-03-131-1/+1
| | | | | | | The parent commit accidentally referenced QT_QMAKE_QMAKE_EXECUTABLE which does not exist. Use QT_QMAKE_EXECUTABLE instead. Reported-by: m.hergarden@euphoria-it.nl
* FindQt4: Do not use qmake from Qt5Janne Rönkkö2013-03-121-36/+53
| | | | | | | | | Wihtout this, if qmake binary is from Qt5 the FindQt4 fails even though the Qt4 version of qmake would be installed as qmake-qt4. On Archlinux this is the case. Reviewed-by: Clinton Stimpson <clinton@elemtech.com>
* Only add existing targets to the Qt4 target depends properties.Stephen Kelly2013-02-261-6/+10
| | | | | Qt can be configured in ways which disable certain modules. Make sure we don't fail on that.
* Don't add target-specific interface includes and defines to Qt 4 targets.Stephen Kelly2013-02-131-8/+0
| | | | | This is a partial revert of commit c8ee07d0 (FindQt4: Add INTERFACE includes and defines to Qt4 targets, 2012-12-31).
* Generate config-specific interface link libraries propeties.Stephen Kelly2013-02-091-6/+18
| | | | | All other properties we generate are config-specific, so it makes sense to do so here too.
* Automatically link to the qtmain library when linking to QtCore.Stephen Kelly2013-01-231-0/+28
| | | | | When using QAxServer, ensure that the qtmain library is excluded by reporting an error at CMake time if it is not.
* Merge topic 'qt4-target-depends'Brad King2013-01-101-0/+26
|\ | | | | | | | | c8ee07d FindQt4: Add INTERFACE includes and defines to Qt4 targets
| * FindQt4: Add INTERFACE includes and defines to Qt4 targetsStephen Kelly2013-01-101-0/+26
| |
* | Merge topic 'qt4-version-openssl'Brad King2013-01-081-5/+5
|\ \ | |/ |/| | | | | 4b9ec00 FindQt4: set QT_VERSION_* variables sooner.
| * FindQt4: set QT_VERSION_* variables sooner.Clinton Stimpson2013-01-071-5/+5
| | | | | | | | | | Set QT_VERSION_* variables sooner so they can be set before Qt4ConfigDependentSettings.cmake uses them.
* | Qt4: Add module dependencies to the IMPORTED targetsStephen Kelly2013-01-071-0/+55
|/ | | | | | | | | | | | | | This means for example, that consumers can use: target_link_libraries(foo ${QT_QTGUI_LIBRARIES}) instead of also needing to specify all 'public' dependencies: target_link_libraries(foo ${QT_QTGUI_LIBRARIES} ${QT_QTCORE_LIBRARIES} ) when using the IMPORTED targets. Also populate the IMPORTED_LINK_DEPENDENT_LIBRARIES property so CMake can help the linker find shared library dependencies.
* Merge topic 'OpenBSD-patches'David Cole2012-12-111-6/+6
|\ | | | | | | | | f80ccac OpenBSD: Add paths for Qt3/Qt4
| * OpenBSD: Add paths for Qt3/Qt4Amit Kulkarni2012-12-051-6/+6
| | | | | | | | | | | | | | Handle OpenBSD specific paths in Qt3/Qt4, allowing concurrent building and installation. Some common programs are renamed with suffixes of either 3 or 4. Also, allow qt3/qt4 installed under /usr/local to be searched and recognized appropriately.
* | Qt4: Add SYSTEM option to include_directories.Clinton Stimpson2012-12-031-0/+4
|/ | | | Thanks to Scott Bailey and Benjamin Kloster.
* Find* (and some other): use ${CMAKE_CURRENT_LIST_DIR} in include()Rolf Eike Beer2012-11-041-2/+2
| | | | | | This solves a lots of warnings, e.g. in the FindModulesExecuteAll test. If the installed version on the system is rather old this may even lead to bugs, e.g. https://bugs.gentoo.org/show_bug.cgi?id=436540
* FindQt4: Avoid "finding" non-existent library in a .frameworkDavid Cole2012-09-061-0/+12
| | | | | | ...if the library file does not exist inside the .framework then do not allow a library variable to be set to the path to the framework. Force set it to NOTFOUND instead.
* Merge topic 'fix-Qt-casing'Brad King2012-08-301-1/+1
|\ | | | | | | | | 3252149 Fix casing of 'Qt' in docs, comments and user-visible strings.
| * Fix casing of 'Qt' in docs, comments and user-visible strings.Stephen Kelly2012-08-281-1/+1
| | | | | | | | | | QT (cue-tea) is Apple QuickTime. Qt (cute) is the C++ framework.
* | Fix errors detecting Qt4 on Windows 8.Clinton Stimpson2012-08-241-1/+1
|/ | | | Thanks to Petr Baloun for the patch.
* Merge topic 'qt4_use_modules'David Cole2012-08-201-0/+11
|\ | | | | | | | | 1420691 Add new qt4_use_modules function.
| * Add new qt4_use_modules function.Stephen Kelly2012-08-191-0/+11
| |
* | FindQt4: Give precedence to QTDIR environment variable, if set.Clinton Stimpson2012-08-161-5/+5
| | | | | | | | | | | | | | | | Remove old search paths that aren't needed. Keep using PATHS instead of HINTS because a Windows machine may have a different Qt in its PATH and putting QTDIR and the registry entry ahead of PATH could cause apps to fail when run.
* | FindQt4: Give precedence to QTDIR environment variable, if set.Clinton Stimpson2012-08-161-1/+1
| |
* | Fix regex for qt minor version.Clinton Stimpson2012-08-161-1/+1
|/ | | | Thanks to Dubrovskiy Viacheslav and Sergei Epifanov for patch.
* Remove CMake-language block-end command argumentsKitware Robot2012-08-131-92/+92
| | | | | | | | | | | | | | | | | Ancient versions of CMake required else(), endif(), and similar block termination commands to have arguments matching the command starting the block. This is no longer the preferred style. Run the following shell code: for c in else endif endforeach endfunction endmacro endwhile; do echo 's/\b'"$c"'\(\s*\)(.\+)/'"$c"'\1()/' done >convert.sed && git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' | egrep -z -v '^(Utilities/cm|Source/kwsys/)' | egrep -z -v 'Tests/CMakeTests/While-Endwhile-' | xargs -0 sed -i -f convert.sed && rm convert.sed
* Convert CMake-language commands to lower caseKitware Robot2012-08-131-420/+420
| | | | | | | | | | | | | | | | | Ancient CMake versions required upper-case commands. Later command names became case-insensitive. Now the preferred style is lower-case. Run the following shell code: cmake --help-command-list | grep -v "cmake version" | while read c; do echo 's/\b'"$(echo $c | tr '[:lower:]' '[:upper:]')"'\(\s*\)(/'"$c"'\1(/g' done >convert.sed && git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' | egrep -z -v '^(Utilities/cm|Source/kwsys/)' | xargs -0 sed -i -f convert.sed && rm convert.sed
* Remove trailing whitespace from most CMake and C/C++ codeKitware Robot2012-08-131-56/+56
| | | | | | | | | | | | | | | | | Our Git commit hooks disallow modification or addition of lines with trailing whitespace. Wipe out all remnants of trailing whitespace everywhere except third-party code. Run the following shell code: git ls-files -z -- \ bootstrap doxygen.config '*.readme' \ '*.c' '*.cmake' '*.cpp' '*.cxx' \ '*.el' '*.f' '*.f90' '*.h' '*.in' '*.in.l' '*.java' \ '*.mm' '*.pike' '*.py' '*.txt' '*.vim' | egrep -z -v '^(Utilities/cm|Source/(kwsys|CursesDialog/form)/)' | egrep -z -v '^(Modules/CPack\..*\.in)' | xargs -0 sed -i 's/ \+$//'
* Fix typo direcotry -> directory (and similar) [#13444]Rolf Eike Beer2012-07-301-1/+1
|
* FindQt4: extend documentationRolf Eike Beer2012-06-201-6/+19
| | | | | -refer to AUTOMOC from QT4_AUTOMOC -mention how source file properties influence QT4_ADD_DBUS_INTERFACE
* Merge topic 'qt4-phonon-backend'David Cole2012-06-051-1/+5
|\ | | | | | | | | ad7c80c Added conditional for the phonon backend plugin.
| * Added conditional for the phonon backend plugin.Kurtis Nusbaum2012-05-291-1/+5
| | | | | | | | If on APPLE, the phonon backend plugin is set to phonon_qt7. If on WIN32, the phonon backend plugin is set to phonon_ds9. I did not add any for generic UNIXes as they could have a whole host of things. A more comprehensive script would actually attempt to detect which phonon plugins were installed. However, this is a simple fix for now that will work for most people.