summaryrefslogtreecommitdiffstats
path: root/kicker/taskmanager/CMakeLists.txt
blob: 6e4a14f2cd7f41438caed343a86ca08ddf7d905d (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
49
50
51
52
53
54
55
56
57
58
59
#################################################
#
#  (C) 2010-2011 Serghei Amelian
#  serghei (DOT) amelian (AT) gmail.com
#
#  Improvements and feedback are welcome
#
#################################################

##### check for xcomposite ######################

if( WITH_XCOMPOSITE )

  pkg_search_module( XCOMPOSITE xcomposite )
  if( XCOMPOSITE_FOUND )
    set( HAVE_XCOMPOSITE 1 CACHE INTERNAL "" )
  else( XCOMPOSITE_FOUND )
    message(FATAL_ERROR "\nxcomposite are requested, but not found on your system" )
  endif( XCOMPOSITE_FOUND )

  pkg_search_module( XFIXES xfixes )
  if( XFIXES_FOUND )
    set( HAVE_XFIXES 1 CACHE INTERNAL "" )
  else( XFIXES_FOUND )
    message(FATAL_ERROR "\nxfixes are required, but not found on your system" )
  endif( XFIXES_FOUND )

endif( WITH_XCOMPOSITE )


include_directories(
  ${CMAKE_CURRENT_BINARY_DIR}
  ${CMAKE_BINARY_DIR}
  ${CMAKE_SOURCE_DIR}/kicker/libkicker
  ${TDE_INCLUDE_DIR}
  ${TQT_INCLUDE_DIRS}
)

link_directories(
  ${TQT_LIBRARY_DIRS}
  ${DBUS_TQT_LIBRARY_DIRS}
)



##### taskmanager (shared) ######################

set( target taskmanager )

set( ${target}_SRCS
  tasklmbmenu.cpp taskrmbmenu.cpp taskmanager.cpp
)

tde_add_library( ${target} SHARED AUTOMOC
  SOURCES ${${target}_SRCS}
  VERSION 1.0.0
  LINK tdecore-shared kickermain-shared ${XFIXES_LIBRARIES} ${XRENDER_LIBRARIES} ${XCOMPOSITE_LIBRARIES}
  DESTINATION ${LIB_INSTALL_DIR}
)