1
# Remmina - The GTK+ Remote Desktop Client
3
# Copyright (C) 2012 Daniel M. Weeks
5
# This program is free software; you can redistribute it and/or modify
6
# it under the terms of the GNU General Public License as published by
7
# the Free Software Foundation; either version 2 of the License, or
8
# (at your option) any later version.
10
# This program is distributed in the hope that it will be useful,
11
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
# GNU General Public License for more details.
15
# You should have received a copy of the GNU General Public License
16
# along with this program; if not, write to the Free Software
17
# Foundation, Inc., 59 Temple Place, Suite 330,
18
# Boston, MA 02111-1307, USA.
21
find_required_package(GTK${GTK_VERSION})
22
if(GTK${GTK_VERSION}_FOUND)
28
# Prefer GTK+ 3 over GTK+ 2
30
find_package(GTK3 QUIET)
35
find_package(GTK2 QUIET)
46
set(_GTK_ERR_MESSAGE "GTK ${GTK_VERSION} not found.")
48
set(_GTK_ERR_MESSAGE "No GTK not found.")
52
set(GTK_LIBRARIES ${GTK${GTK_VERSION}_LIBRARIES})
53
unset(GTK${GTK_VERSION}_LIBRARIES)
55
set(GTK_INCLUDE_DIRS ${GTK${GTK_VERSION}_INCLUDE_DIRS})
56
unset(GTK${GTK_VERSION}_INCLUDE_DIRS)
59
message(FATAL_ERROR ${_GTK_ERR_MESSAGE})
61
if(NOT VTK_FIND_QUIETLY)
62
message(STATUS ${_GTK_ERR_MESSAGE})