2
# Copyright 2009-2010 Jakob Westhoff. All rights reserved.
4
# Redistribution and use in source and binary forms, with or without
5
# modification, are permitted provided that the following conditions are met:
7
# 1. Redistributions of source code must retain the above copyright notice,
8
# this list of conditions and the following disclaimer.
10
# 2. Redistributions in binary form must reproduce the above copyright notice,
11
# this list of conditions and the following disclaimer in the documentation
12
# and/or other materials provided with the distribution.
14
# THIS SOFTWARE IS PROVIDED BY JAKOB WESTHOFF ``AS IS'' AND ANY EXPRESS OR
15
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
16
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
17
# EVENT SHALL JAKOB WESTHOFF OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
18
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
19
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
20
# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
21
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
22
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
23
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25
# The views and conclusions contained in the software and documentation are those
26
# of the authors and should not be interpreted as representing official policies,
27
# either expressed or implied, of Jakob Westhoff
31
# Find module for the Gir compiler (g-ir-compiler)
33
# This module determines wheter a Gir compiler is installed on the current
34
# system and where its executable is.
36
# Call the module using "find_package(GirCompiler) from within your CMakeLists.txt.
38
# The following variables will be set after an invocation:
40
# G_IR_COMPILER_FOUND Whether the g-ir-compiler compiler has been found or not
41
# G_IR_COMPILER_EXECUTABLE Full path to the g-ir-compiler executable if it has been found
45
# Search for the g-ir-compiler executable in the usual system paths.
46
find_program (G_IR_COMPILER_EXECUTABLE
49
# Handle the QUIETLY and REQUIRED arguments, which may be given to the find call.
50
# Furthermore set G_IR_COMPILER_FOUND to TRUE if the g-ir-compiler has been found (aka.
51
# G_IR_COMPILER_EXECUTABLE is set)
53
include (FindPackageHandleStandardArgs)
54
find_package_handle_standard_args (GirCompiler DEFAULT_MSG G_IR_COMPILER_EXECUTABLE)
56
mark_as_advanced (G_IR_COMPILER_EXECUTABLE)