blob: f256a453f861724e4373f30993458cf50fea9579 (
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
|
# cmake macro to see if we have Plasma from KDE workspace
# PLASMA_INCLUDE_DIR
# PLASMA_FOUND
# Copyright (C) 2007 Brad Hards <bradh@frogmouth.net>
#
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
if (PLASMA_INCLUDE_DIR)
# Already in cache, be silent
set(PLASMA_FOUND TRUE)
endif (PLASMA_INCLUDE_DIR)
find_path(PLASMA_INCLUDE_DIR NAMES plasma/kpanelapplet.h
PATHS
${INCLUDE_INSTALL_DIR}
)
find_library(PLASMA_LIBRARIES NAMES plasma
PATHS
${LIB_INSTALL_DIR}
)
if (PLASMA_LIBRARIES AND PLASMA_INCLUDE_DIR)
set(PLASMA_FOUND TRUE)
endif (PLASMA_LIBRARIES AND PLASMA_INCLUDE_DIR)
if (PLASMA_FOUND)
if (NOT Plasma_FIND_QUIETLY)
message(STATUS "Found Plasma: ${PLASMA_LIBRARIES}")
endif (NOT Plasma_FIND_QUIETLY)
else (PLASMA_FOUND)
if (Plasma_FIND_REQUIRED)
message(FATAL_ERROR "Could NOT find Plasma")
endif (Plasma_FIND_REQUIRED)
endif (PLASMA_FOUND)
mark_as_advanced(PLASMA_INCLUDE_DIR PLASMA_LIBRARIES)
|