1
project(panelplugin-indicator)
3
macro(read_pkg_variable cmake_var pkg pkg_var)
5
COMMAND pkg-config --variable=${pkg_var} ${pkg}
8
# Remove trailing newline from ${tmp}
9
string(STRIP "${tmp}" ${cmake_var})
10
endmacro(read_pkg_variable)
13
pkg_check_modules(DBUSMENUQT REQUIRED dbusmenu-qt)
14
pkg_check_modules(INDICATOR REQUIRED indicator)
16
# Get indicator dirs from pkgconfig
17
read_pkg_variable(INDICATOR_DIR indicator indicatordir)
18
read_pkg_variable(INDICATOR_ICONS_DIR indicator iconsdir)
28
${CMAKE_CURRENT_SOURCE_DIR}
29
${CMAKE_CURRENT_BINARY_DIR}
30
${DBUSMENUQT_INCLUDE_DIRS}
32
${INDICATOR_INCLUDE_DIRS}
33
${CMAKE_CURRENT_BINARY_DIR}
34
${UNITYCORE_INCLUDE_DIRS}
35
${libunity-2d-private_SOURCE_DIR}/src
38
qt4_automoc(${indicator_SRCS})
39
add_library(panelplugin-indicator SHARED ${indicator_SRCS})
40
set_target_properties(panelplugin-indicator PROPERTIES
41
LIBRARY_OUTPUT_DIRECTORY ".."
46
target_link_libraries(panelplugin-indicator
48
${QT_QTCORE_LIBRARIES}
56
install(TARGETS panelplugin-indicator
57
LIBRARY DESTINATION lib/unity-2d/plugins/panel