~enso-os/+junk/welcome

« back to all changes in this revision

Viewing changes to cmake/FindGirCompiler.cmake

  • Committer: Nick Wilkins
  • Date: 2018-04-24 11:14:07 UTC
  • Revision ID: nickawilkins@hotmail.com-20180424111407-scsa09pln2hi0gac
inital commit of welcome

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
##
 
2
# Copyright 2009-2010 Jakob Westhoff. All rights reserved.
 
3
 
4
# Redistribution and use in source and binary forms, with or without
 
5
# modification, are permitted provided that the following conditions are met:
 
6
 
7
#    1. Redistributions of source code must retain the above copyright notice,
 
8
#       this list of conditions and the following disclaimer.
 
9
 
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.
 
13
 
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.
 
24
 
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
 
28
##
 
29
 
 
30
##
 
31
# Find module for the Gir compiler (g-ir-compiler)
 
32
#
 
33
# This module determines wheter a Gir compiler is installed on the current
 
34
# system and where its executable is.
 
35
#
 
36
# Call the module using "find_package(GirCompiler) from within your CMakeLists.txt.
 
37
#
 
38
# The following variables will be set after an invocation:
 
39
#
 
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
 
42
##
 
43
 
 
44
 
 
45
# Search for the g-ir-compiler executable in the usual system paths.
 
46
find_program (G_IR_COMPILER_EXECUTABLE
 
47
  NAMES g-ir-compiler)
 
48
 
 
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)
 
52
 
 
53
include (FindPackageHandleStandardArgs)
 
54
find_package_handle_standard_args (GirCompiler DEFAULT_MSG G_IR_COMPILER_EXECUTABLE)
 
55
 
 
56
mark_as_advanced (G_IR_COMPILER_EXECUTABLE)