~manishsinha/scratch/move-to-zeitgeist2

« back to all changes in this revision

Viewing changes to plugins/spell/CMakeLists.txt

  • Committer: Tarmac
  • Author(s): Rico Tzschichholz
  • Date: 2013-08-17 20:01:23 UTC
  • mfrom: (1182.4.1 scratch)
  • Revision ID: tarmac-20130817200123-3a7z0dnphuzs2t5e
Add support for final gtkspell3-3.0 api

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
pkg_check_modules (SPELL REQUIRED "gtkspell-3.0")
2
 
if (${SPELL_FOUND})
 
1
pkg_check_modules (SPELLLEGACY QUIET "gtkspell-3.0")
 
2
pkg_check_modules (SPELL QUIET "gtkspell3-3.0")
 
3
 
 
4
if(SPELLLEGACY_FOUND)
 
5
set(SPELLPACKAGE "gtkspell-3.0")
 
6
set(VALAFLAGS "${VALAFLAGS} -DSPELLLEGACY")
 
7
elseif(SPELL_FOUND)
 
8
set(SPELLPACKAGE "gtkspell3-3.0")
 
9
endif()
 
10
 
 
11
if (SPELLLEGACY_FOUND OR SPELL_FOUND)
 
12
pkg_check_modules (SPELL REQUIRES ${SPELLPACKAGE})
3
13
add_definitions(${NORMAL_CFLAGS})
4
14
include_directories(${CMAKE_BINARY_DIR} ${CMAKE_BINARY_DIR}/scratchcore/)
5
15
link_directories(${NORMAL_LINK_DIRS})
11
21
vala_precompile(VALA_C
12
22
    spell.vala
13
23
PACKAGES
14
 
    gtkspell-3.0
 
24
    ${SPELLPACKAGE}
15
25
    gtk+-3.0
16
26
    granite
17
27
    gtksourceview-3.0
34
44
message("-- Spell check plugin will be compiled")
35
45
else()
36
46
message("-- Spell check plugin will NOT be compiled")
37
 
endif()
 
 
b'\\ No newline at end of file'
 
47
endif()