aboutsummaryrefslogtreecommitdiff
path: root/attic/modules/FindKdeMultimedia.cmake
blob: c88502913dddca8ef15e3572a95af91b00d52e41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Module to see if we have KDE4 kdemultimedia installed
#
# This module defines
#  KDEMULTIMEDIA_INCLUDE_DIR - the include dir
#  KCDDB_LIBRARY - the kcddb library
#  KCOMPACTDISC_LIBRARY - the kcompactdisk library
#  KDEMULTIMEDIA_LIBRARIES - all of the KDE multimedia libraries together
#  KDEMULTIMEDIA_FOUND - true if the above have been found

# KDEMULTIMEDIA_INCLUDE_DIR
# KDEMULTIMEDIA_FOUND
# Copyright (C) 2007 Laurent Montel <montel@kde.org>
# Copyright (C) 2007 Gerd Fleischer <gerdfleischer@web.de>
#
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.


if (KDEMULTIMEDIA_INCLUDE_DIR)
    # Already in cache, be silent
    set(KDEMULTIMEDIA_FOUND TRUE)
endif (KDEMULTIMEDIA_INCLUDE_DIR)


find_path(KDEMULTIMEDIA_INCLUDE_DIR NAMES libkcddb/kcddb.h libkcompactdisc/kcompactdisc.h
    PATHS
    ${INCLUDE_INSTALL_DIR}
)

find_library(KCDDB_LIBRARY NAMES kcddb
    PATHS
    ${LIB_INSTALL_DIR}
)

find_library(KCOMPACTDISC_LIBRARY NAMES kcompactdisc
    PATHS
    ${LIB_INSTALL_DIR}
)

# audioencoder, audiocdplugins?

set(KDEMULTIMEDIA_LIBRARIES ${KCDDB_LIBRARY} ${KCOMPACTDISC_LIBRARY})

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(KdeMultimedia DEFAULT_MSG KDEMULTIMEDIA_LIBRARIES KDEMULTIMEDIA_INCLUDE_DIR )

mark_as_advanced(KDEMULTIMEDIA_INCLUDE_DIR KDEMULTIMEDIA_LIBRARIES)