summaryrefslogtreecommitdiffstats
path: root/Modules/FindGTK2.cmake
Commit message (Collapse)AuthorAgeFilesLines
* FindGTK2: Find atkmmconfig.h separately from atkmm.hJani Välimaa2020-12-221-0/+1
| | | | | | | The former may be installed into libdir instead of includedir. We already do this for several other components. Fixes: #21627
* Help: Add `.. versionadded` directives to module docsNikita Nemkin2020-12-021-1/+23
| | | | Issue: #19715
* Merge topic 'FindGTK2-harfbuzz-target'Brad King2020-05-111-3/+6
|\ | | | | | | | | | | | | 5ab137b7e9 FindGTK2: Add harfbuzz target for dependency from pango Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4725
| * FindGTK2: Add harfbuzz target for dependency from pangoBrad King2020-05-091-3/+6
| | | | | | | | | | | | | | | | | | | | Since commit effafca77e (FindGTK2: Add harfbuzz to GTK2_INCLUDE_DIRS, 2019-10-01, v3.16.0-rc1~22^2), pango's dependency on harfbuzz has been captured, but only for the `GTK2_INCLUDE_DIRS` and `GTK2_LIBRARIES` variables. Add the `GTK2::harfbuzz` imported target and update the `GTK2::pango` target to depend on it. Issue: #19531
* | FindGTK2: Fix documentation formattingBrad King2020-01-211-65/+52
| | | | | | | | Fixes: #20223
* | FPHSA: acknowledge the name mismatches in CMake-owned modulesBen Boeckel2020-01-141-0/+2
|/
* FindGTK2: Add harfbuzz to GTK2_INCLUDE_DIRSMarkus Mittendrein2019-10-021-0/+3
| | | | Fixes: #19531
* Modules: Consistently use 2 space indentationKitware Robot2019-05-141-1/+1
|
* Help: Improve description of modulesBartosz Kosiorek2019-04-231-4/+2
|
* remove some platform specific search paths from Find modulesRolf Eike Beer2019-03-191-3/+0
| | | | These are added through CMAKE_SYSTEM_PREFIX_PATH on the platforms automatically.
* Help: Convert remaining modules to block-style commentsKitware Robot2018-10-221-96/+97
|
* Modules: Use MSVC_TOOLSET_VERSION variable to simplify logicArkady Shapkin2018-04-041-7/+3
|
* Modules: Remove paths set as global Unix prefixesChristian Pfeiffer2017-11-201-2/+0
| | | | | This commit removes hardcoded paths that are already given in the platform files or in `UnixPath` on a global level.
* Merge topic 'avoid-MSVC-per-version-vars'Brad King2017-03-231-5/+5
|\ | | | | | | | | | | | | | | | | 9ab966a7 FindRuby: Use `MSVC_VERSION` instead of `MSVC##` 69b9fde1 FindGTK2: Use `MSVC_VERSION` instead of `MSVC##` 3fe31822 FindBoost: Avoid mentioning discouraged `MSVC##`` variable Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !610
| * FindGTK2: Use `MSVC_VERSION` instead of `MSVC##`Brad King2017-03-231-5/+5
| |
* | Modules: Add x32-abi support to hard-coded pathsSteven Newbury2017-03-071-0/+2
|/ | | | | Update hard-coded library paths in bundled CMake Modules for libx32 as used with x32-abi.
* FindGTK2: handle old libsigc++ versionsBen Boeckel2017-02-201-1/+4
| | | | | | | | Old versions of `libsigc++` do not have the version macros inside of its `sigc++config.h` header. Assume nothing about such headers and report version "zero". Fixes: #16654
* FindGTK2: Fix GTK2_LIBRARIES and GTK2_TARGETS when called twiceDaniele E. Domenichelli2017-01-251-42/+40
| | | | Closes: #16582
* Don't include CMakeParseArgumentsDaniel Pfeifer2017-01-111-1/+0
| | | | | | | | | | | | The cmake_parse_arguments command is builtin with version 3.5. The CMakeParseArguments module is empty and exists for backwards compatibility with CMake 3.4 and lower. Remove the includes of CMakeParseArguments from CMake's modules. The modules are always used with the current version of CMake. Leave the includes in the tests, as the tests may be run with an older version of CMake.
* Find*.cmake: drop the comments before including FPHSARolf Eike Beer2016-11-281-1/+0
| | | | | No need to explain this over and over again. While at it, do some other minor cleanups to whitespace and comments (i.e. delete them).
* Simplify CMake per-source license noticesBrad King2016-09-271-14/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | Per-source copyright/license notice headers that spell out copyright holder names and years are hard to maintain and often out-of-date or plain wrong. Precise contributor information is already maintained automatically by the version control tool. Ultimately it is the receiver of a file who is responsible for determining its licensing status, and per-source notices are merely a convenience. Therefore it is simpler and more accurate for each source to have a generic notice of the license name and references to more detailed information on copyright holders and full license terms. Our `Copyright.txt` file now contains a list of Contributors whose names appeared source-level copyright notices. It also references version control history for more precise information. Therefore we no longer need to spell out the list of Contributors in each source file notice. Replace CMake per-source copyright/license notice headers with a short description of the license and links to `Copyright.txt` and online information available from "https://cmake.org/licensing". The online URL also handles cases of modules being copied out of our source into other projects, so we can drop our notices about replacing links with full license text. Run the `Utilities/Scripts/filter-notices.bash` script to perform the majority of the replacements mechanically. Manually fix up shebang lines and trailing newlines in a few files. Manually update the notices in a few files that the script does not handle.
* FindGTK2: Use targets in GTK2_LIBRARIES if GTK2_USE_IMPORTED_TARGETS is ONDaniele E. Domenichelli2015-11-091-0/+11
| | | | | | | | Also add GTK2_TARGETS variable containing all imported targets. Previously, the GTK2_LIBRARIES variable was filled with the paths to the libraries, and only the GTK2_XXX_LIBRARY variables contained the imported targets.
* FindGTK2: Enable c++11 for sigc++ 2.5.1 or laterDaniele E. Domenichelli2015-10-121-0/+58
| | | | | | | Starting with sigc++ 2.5.1, c++11 must be enabled in order to use sigc++. The GTK2::sigc++ imported target will automatically enable the required build flags in order to build with the version found on the system.
* FindGTK2: Avoid depending on if() to dereference a quoted variableBrad King2014-09-111-1/+1
| | | | | Explicitly dereference GTK2_${_var}CONFIG_INCLUDE_DIR and GTK2_${_var}_INCLUDE_DIR when comparing their values.
* FindGTK2: Fix missing optional include dirs.Chuck Atkins2014-09-041-1/+5
| | | | | | | | | FindGTK2 was adding optional include directories to the interface include dirs regardless of whether or not they existed. This ensures that the directories only get added if they are actually found. This is particularly a problem on Solaris where the gtk2 libs and headers might exist but the FreeType2 headers might not.
* Do not change minimum required version in modulesDaniele E. Domenichelli2014-05-191-1/+0
| | | | | | | | | | | | | | | | | | | | Some modules change CMake minimum required version when they are included. For example: cmake_minimum_required(VERSION 2.8.12) message("${CMAKE_MINIMUM_REQUIRED_VERSION}") include(CheckTypeSize) message("${CMAKE_MINIMUM_REQUIRED_VERSION}") will produce the following output: 2.8.12 2.6 This patch ensures that when you include a CMake module the minimum required version and the policies set are left unchanged. Fixes Issue #14864
* FindGTK2: search for Fontconfig and X11 before using themRolf Eike Beer2014-04-231-4/+4
|
* FindGTK2: Add GTK2_(FONTCONFIG|X11)_INCLUDE_DIR optional includesDaniele E. Domenichelli2014-04-211-10/+26
|
* FindGTK2: Add /usr/X11R6/ to include pathsDaniele E. Domenichelli2014-04-151-0/+2
| | | | | Should fix builds on OpenBSD, see http://open.cdash.org/viewTest.php?onlyfailed&buildid=3286713
* CMake 3.0.0-rc1 version updateBrad King2014-02-191-1/+1
|
* FindGTK2: Add support for Quartz backend on MACDaniele E. Domenichelli2013-11-241-2/+12
| | | | Fix issue #14593
* Convert builtin help to reStructuredText source filesKitware Robot2013-10-151-35/+77
| | | | | | | | Run the convert-help.bash script to convert documentation: ./convert-help.bash "/path/to/CMake-build/bin" Then remove it.
* FindGTK2: Make pangocairo and cairo optional dependenciesDaniele E. Domenichelli2013-10-081-12/+14
|
* FindGTK2: Change extra includes -> optionalDaniele E. Domenichelli2013-10-081-24/+18
| | | | On some versions they are not required.
* FindGTK2: do not skip target creation if optional dependencies are not foundDaniele E. Domenichelli2013-10-081-7/+12
| | | | On some older GTK2 version gio, giomm and cairomm are not available
* FindGTK2: Refactor _GTK2_ADJUST_LIB_VARS into _GTK2_ADD_TARGETDaniele E. Domenichelli2013-10-081-152/+161
| | | | | | | | | This function avoids creating the targets when the required dependencies were not found. Also fix some wrong dependency and some typo. ${FREETYPE_INCLUDE_DIR_ft2build} ${FREETYPE_INCLUDE_DIR_freetype2} are now required for gtkmm component
* FindGTK2: Do not add freetype includes if they are not foundDaniele E. Domenichelli2013-10-081-2/+6
| | | | On some older system they are not required
* FindGTK2: Add libraries to the GTK2_LIBRARIES variable only when foundDaniele E. Domenichelli2013-10-081-2/+4
| | | | | | Some libraries (e.g. gio) are not necessary, and often not available with older GTK2 versions, therefore GTK_LIBRARIES should not contain GTK2_XXX-NOT_FOUND for these libraries.
* FindGTK2: Do not link libfreetypeDaniele E. Domenichelli2013-10-081-34/+12
| | | | | | | | | | As discussed on the mailing list, freetype includes used in GTK2 headers libraries do not require to link the library explicitly (even though it is already linked by GTK2 libraries. Also remove _GTK2_ADD_TARGET_LIBRARIES no longer used and use ${FREETYPE_INCLUDE_DIR_ft2build} ${FREETYPE_INCLUDE_DIR_freetype2} variables instead of ${FREETYPE_INCLUDE_DIRS}
* FindGTK2: Add config directories only if different from include onesDaniele E. Domenichelli2013-10-081-1/+1
|
* FindGTK2: Set INTERFACE_COMPILE_DEFINITIONS target property only if not emptyDaniele E. Domenichelli2013-10-081-1/+3
|
* FindGTK2: Add check to ensure that target existsDaniele E. Domenichelli2013-10-081-5/+7
|
* FindGTK2: Fix gmodule, glibmm, pangoft2, and pangoxft targetsDaniele E. Domenichelli2013-10-081-3/+8
|
* FindGTK2: Link freetype libs to targets including freetype includesDaniele E. Domenichelli2013-10-081-0/+21
|
* FindGTK2: Small cleanupDaniele E. Domenichelli2013-10-081-1/+0
|
* FindGTK2: Do not require the GTK_ prefix in all the internal functionsDaniele E. Domenichelli2013-10-081-146/+148
| | | | This saves from using string(REGEXP) to create targets
* FindGTK2: Better handling of include directoriesDaniele E. Domenichelli2013-10-081-13/+15
| | | | Add a method _GTK2_ADD_TARGET_INCLUDE_DIRS to handle it.
* FindGTK2: Create targets for each libraryDaniele E. Domenichelli2013-10-081-3/+147
| | | | | | | | Methods: * _GTK2_ADJUST_LIB_VARS * _GTK2_ADD_TARGET_DEPENDS_INTERNAL * _GTK2_ADD_TARGET_DEPENDS are strongly inspired by FindQt4.cmake
* FindGTK2: Search for glib-object.h instead of gobject/gobject.hDaniele E. Domenichelli2013-10-081-1/+1
| | | | This is the topmost include file for GObject header files
* FindGTK2: Populate GTK2_DEFINITIONS before searching for librariesDaniele E. Domenichelli2013-10-081-14/+14
|