~ubuntu-branches/ubuntu/saucy/phonon-backend-gstreamer/saucy-proposed

« back to all changes in this revision

Viewing changes to cmake/FindPhonon.cmake

  • Committer: Package Import Robot
  • Author(s): Harald Sitter
  • Date: 2013-02-04 14:30:52 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20130204143052-yfhzb2p4vm4xal2r
Tags: 4:4.7.0really4.6.3-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Find Phonon
2
2
 
3
 
# Copyright (c) 2010, Harald Sitter <sitter@kde.org>
 
3
# Copyright (c) 2010-2013, Harald Sitter <sitter@kde.org>
4
4
# Copyright (c) 2011, Alexander Neundorf <neundorf@kde.org>
5
5
#
6
6
# Redistribution and use is allowed according to the terms of the BSD license.
7
7
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
8
8
 
9
9
find_package(Phonon NO_MODULE)
10
 
if(PHONON_FOUND)
 
10
 
 
11
if(PHONON_BUILDSYSTEM_DIR)
11
12
    set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PHONON_BUILDSYSTEM_DIR})
 
13
    # Prevent double-include of internals, and make sure they are included
 
14
    # In Phonon <4.7 the internals were auto-included, in >=4.7 they are not.
 
15
    if(NOT COMMAND phonon_add_executable)
 
16
        include(${PHONON_BUILDSYSTEM_DIR}/FindPhononInternal.cmake )
 
17
    endif()
12
18
endif()
13
19
 
14
20
include(FindPackageHandleStandardArgs)