~midori/midori/trunk

« back to all changes in this revision

Viewing changes to gir/CMakeLists.txt

  • Committer: gue5t
  • Date: 2014-03-04 07:48:13 UTC
  • mto: This revision was merged to the branch mainline in revision 6585.
  • Revision ID: gue5t@midori.launchpad-20140304074813-kxu2exrw21ddjg6n
Implement GIR build support

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright (C) 2013 Olivier Duchateau
 
2
 
 
3
include (GIR)
 
4
 
 
5
if (GIR_FOUND)
 
6
    list (APPEND MODULES "Katze" "Midori")
 
7
    foreach (MOD ${MODULES})
 
8
        string(TOLOWER ${MOD} LOWER_MOD)
 
9
        if (EXISTS "${CMAKE_SOURCE_DIR}/${LOWER_MOD}")
 
10
            gir (${LOWER_MOD} ${MOD})
 
11
        endif ()
 
12
    endforeach ()
 
13
else ()
 
14
    message (FATAL_ERROR "g-ir-scanner not found")
 
15
endif ()